plotter#

Plotting utilities for creating geospatial maps with Cartopy and Matplotlib.

Includes functions for plotting: - Constant data maps with a legend patch. - Discrete data maps with colorbars and extensions. - General wrapper plot_map that auto-selects plotting strategy.

Authors#

  • Jeisson Leal

  • Simon Lüdke

Functions#

calculate_cdf_values(values)

Calculate sorted values and CDF coordinates.

create_metric_summary_rows(values_by_variable)

Create summary rows for metric values.

plot_cdf_values(ax, values, label[, color, ...])

Plot one CDF series on an existing axis.

plot_constant_data_map(lon, lat, arr, vmin, ...)

Plot a map for constant-valued data.

plot_discrete_data_map(lon, lat, arr, vmin, ...)

Plot a map with discrete bins using a colorbar.

plot_map(data, cb_label, title, out_path[, ...])

Plot and save a 2D DataArray over longitude and latitude using Cartopy.

plot_metric_cdf_comparison(values_by_label, ...)

Create a comparison CDF plot for one metric variable.

plot_metric_violin_comparison(...[, title, ...])

Create a violin plot for one metric variable.

write_metric_plot_overview_pdf(output_file, ...)

Write a PDF overview with summary table and plot pages.