diff --git a/CHANGELOG.md b/CHANGELOG.md index fbdaf84..7e85282 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,13 @@ to [Semantic Versioning](https://semver.org/). ### Changed +- **Behaviour change**: `hovmoller`, `cross_section`, `cross_section_panels` and `heatmap` default to + the sequential colormap (`inferno`) instead of `Spectral_r`; `diff=True` still defaults to `RdBu_r` + (`cmap=None` in `hovmoller` and `cross_section`), and an explicit `cmap` is now kept with `diff=True`. +- **Behaviour change**: `grouped_bars` puts its legend in a row above the axes (right-aligned, no frame) + instead of `loc="best"`, which could cover bars; `pareto` labels `baselines` at the left edge on a + white backing. +- `cross_section` no longer sets a bare `"[hPa]"` label when `ylabel=""` (likewise `xlabel`). - **Behaviour change** of `scorecard` defaults: `highlight_best=False`; with no baseline cells are ranked per column on the skill palette (blue best) instead of `RdYlGn`; `reference=` colours by percent better (with `uncertainty=` as before, in standard errors, on the same palette); `cmap=None`; diff --git a/docs/assets/01_global_map.png b/docs/assets/01_global_map.png index 43de4c4..84ceabe 100644 Binary files a/docs/assets/01_global_map.png and b/docs/assets/01_global_map.png differ diff --git a/docs/assets/05_ternary_map.png b/docs/assets/05_ternary_map.png index c68fb18..747b858 100644 Binary files a/docs/assets/05_ternary_map.png and b/docs/assets/05_ternary_map.png differ diff --git a/docs/assets/14_agreement.png b/docs/assets/14_agreement.png index b26cbb5..3bd8d56 100644 Binary files a/docs/assets/14_agreement.png and b/docs/assets/14_agreement.png differ diff --git a/docs/assets/17_model_comparison.png b/docs/assets/17_model_comparison.png index 05055be..7ecfc1d 100644 Binary files a/docs/assets/17_model_comparison.png and b/docs/assets/17_model_comparison.png differ diff --git a/docs/assets/20_scorecard.png b/docs/assets/20_scorecard.png index 92959ee..32904e6 100644 Binary files a/docs/assets/20_scorecard.png and b/docs/assets/20_scorecard.png differ diff --git a/docs/assets/23_composite_figure.png b/docs/assets/23_composite_figure.png index 2e45915..a277f4b 100644 Binary files a/docs/assets/23_composite_figure.png and b/docs/assets/23_composite_figure.png differ diff --git a/docs/assets/guide/animation-maps.png b/docs/assets/guide/animation-maps.png index 3c71b35..e94b6d9 100644 Binary files a/docs/assets/guide/animation-maps.png and b/docs/assets/guide/animation-maps.png differ diff --git a/docs/assets/guide/animation-panels.png b/docs/assets/guide/animation-panels.png index dd6f804..660daae 100644 Binary files a/docs/assets/guide/animation-panels.png and b/docs/assets/guide/animation-panels.png differ diff --git a/docs/assets/guide/colormaps-artist.png b/docs/assets/guide/colormaps-artist.png index d86d5e7..bc13711 100644 Binary files a/docs/assets/guide/colormaps-artist.png and b/docs/assets/guide/colormaps-artist.png differ diff --git a/docs/assets/guide/colormaps-bivariate.png b/docs/assets/guide/colormaps-bivariate.png index 8dc7d1a..b62886c 100644 Binary files a/docs/assets/guide/colormaps-bivariate.png and b/docs/assets/guide/colormaps-bivariate.png differ diff --git a/docs/assets/guide/colormaps-elevation.png b/docs/assets/guide/colormaps-elevation.png index bf2168e..81d65ad 100644 Binary files a/docs/assets/guide/colormaps-elevation.png and b/docs/assets/guide/colormaps-elevation.png differ diff --git a/docs/assets/guide/colormaps-landcover.png b/docs/assets/guide/colormaps-landcover.png index f885071..af06235 100644 Binary files a/docs/assets/guide/colormaps-landcover.png and b/docs/assets/guide/colormaps-landcover.png differ diff --git a/docs/assets/guide/colormaps-scorecard.png b/docs/assets/guide/colormaps-scorecard.png index 30fe86c..bb24729 100644 Binary files a/docs/assets/guide/colormaps-scorecard.png and b/docs/assets/guide/colormaps-scorecard.png differ diff --git a/docs/assets/guide/colormaps-ternary.png b/docs/assets/guide/colormaps-ternary.png index f131512..0d3d092 100644 Binary files a/docs/assets/guide/colormaps-ternary.png and b/docs/assets/guide/colormaps-ternary.png differ diff --git a/docs/assets/guide/figures-ax-title.png b/docs/assets/guide/figures-ax-title.png index 35896c5..4b9129d 100644 Binary files a/docs/assets/guide/figures-ax-title.png and b/docs/assets/guide/figures-ax-title.png differ diff --git a/docs/assets/guide/figures-facet.png b/docs/assets/guide/figures-facet.png index 431f899..0ddad4b 100644 Binary files a/docs/assets/guide/figures-facet.png and b/docs/assets/guide/figures-facet.png differ diff --git a/docs/assets/guide/figures-grid.png b/docs/assets/guide/figures-grid.png index 6649b8a..3243c13 100644 Binary files a/docs/assets/guide/figures-grid.png and b/docs/assets/guide/figures-grid.png differ diff --git a/docs/assets/guide/figures-labels.png b/docs/assets/guide/figures-labels.png index 687b7ea..957462d 100644 Binary files a/docs/assets/guide/figures-labels.png and b/docs/assets/guide/figures-labels.png differ diff --git a/docs/assets/guide/figures-legend-row.png b/docs/assets/guide/figures-legend-row.png index 018afee..e3b6f31 100644 Binary files a/docs/assets/guide/figures-legend-row.png and b/docs/assets/guide/figures-legend-row.png differ diff --git a/docs/assets/guide/figures-overlaps.png b/docs/assets/guide/figures-overlaps.png index c9e57fc..15ed9d8 100644 Binary files a/docs/assets/guide/figures-overlaps.png and b/docs/assets/guide/figures-overlaps.png differ diff --git a/docs/assets/guide/figures-reference-line.png b/docs/assets/guide/figures-reference-line.png index 5e0fdf0..3de9338 100644 Binary files a/docs/assets/guide/figures-reference-line.png and b/docs/assets/guide/figures-reference-line.png differ diff --git a/docs/assets/guide/figures-row-col.png b/docs/assets/guide/figures-row-col.png index 3a513a1..38264cb 100644 Binary files a/docs/assets/guide/figures-row-col.png and b/docs/assets/guide/figures-row-col.png differ diff --git a/docs/assets/guide/figures-single.png b/docs/assets/guide/figures-single.png index 05b144f..7082716 100644 Binary files a/docs/assets/guide/figures-single.png and b/docs/assets/guide/figures-single.png differ diff --git a/docs/assets/guide/maps-binned.png b/docs/assets/guide/maps-binned.png index a64b4fd..837d5ef 100644 Binary files a/docs/assets/guide/maps-binned.png and b/docs/assets/guide/maps-binned.png differ diff --git a/docs/assets/guide/maps-categorical.png b/docs/assets/guide/maps-categorical.png index 2afd440..79b7fd4 100644 Binary files a/docs/assets/guide/maps-categorical.png and b/docs/assets/guide/maps-categorical.png differ diff --git a/docs/assets/guide/maps-inset-hist.png b/docs/assets/guide/maps-inset-hist.png index e9f8342..0d5e820 100644 Binary files a/docs/assets/guide/maps-inset-hist.png and b/docs/assets/guide/maps-inset-hist.png differ diff --git a/docs/assets/guide/maps-panels.png b/docs/assets/guide/maps-panels.png index 5da8ed2..676afbd 100644 Binary files a/docs/assets/guide/maps-panels.png and b/docs/assets/guide/maps-panels.png differ diff --git a/docs/assets/guide/maps-regional.png b/docs/assets/guide/maps-regional.png index 8026224..04aa11f 100644 Binary files a/docs/assets/guide/maps-regional.png and b/docs/assets/guide/maps-regional.png differ diff --git a/docs/assets/guide/maps-scatter.png b/docs/assets/guide/maps-scatter.png index 101dc54..08ea03b 100644 Binary files a/docs/assets/guide/maps-scatter.png and b/docs/assets/guide/maps-scatter.png differ diff --git a/docs/assets/guide/maps-ternary.png b/docs/assets/guide/maps-ternary.png index 7c01ea0..9a2d4b6 100644 Binary files a/docs/assets/guide/maps-ternary.png and b/docs/assets/guide/maps-ternary.png differ diff --git a/docs/assets/guide/maps-tri.png b/docs/assets/guide/maps-tri.png index 62ec9f8..79c826e 100644 Binary files a/docs/assets/guide/maps-tri.png and b/docs/assets/guide/maps-tri.png differ diff --git a/docs/assets/guide/maps-xarray.png b/docs/assets/guide/maps-xarray.png index c1e448e..caa1cac 100644 Binary files a/docs/assets/guide/maps-xarray.png and b/docs/assets/guide/maps-xarray.png differ diff --git a/docs/assets/guide/plots-agreement.png b/docs/assets/guide/plots-agreement.png index 24f48ca..cf1e793 100644 Binary files a/docs/assets/guide/plots-agreement.png and b/docs/assets/guide/plots-agreement.png differ diff --git a/docs/assets/guide/plots-bars.png b/docs/assets/guide/plots-bars.png index fefb602..3a85983 100644 Binary files a/docs/assets/guide/plots-bars.png and b/docs/assets/guide/plots-bars.png differ diff --git a/docs/assets/guide/plots-caterpillar.png b/docs/assets/guide/plots-caterpillar.png index ab8a248..afe621e 100644 Binary files a/docs/assets/guide/plots-caterpillar.png and b/docs/assets/guide/plots-caterpillar.png differ diff --git a/docs/assets/guide/plots-cross-section.png b/docs/assets/guide/plots-cross-section.png index 06c3c8c..b4eed25 100644 Binary files a/docs/assets/guide/plots-cross-section.png and b/docs/assets/guide/plots-cross-section.png differ diff --git a/docs/assets/guide/plots-flowchart.png b/docs/assets/guide/plots-flowchart.png index a6b5c1f..253940f 100644 Binary files a/docs/assets/guide/plots-flowchart.png and b/docs/assets/guide/plots-flowchart.png differ diff --git a/docs/assets/guide/plots-flux-diagram-panels.png b/docs/assets/guide/plots-flux-diagram-panels.png index 6368f92..51f7bc2 100644 Binary files a/docs/assets/guide/plots-flux-diagram-panels.png and b/docs/assets/guide/plots-flux-diagram-panels.png differ diff --git a/docs/assets/guide/plots-flux-diagram.png b/docs/assets/guide/plots-flux-diagram.png index 0ce511f..8276745 100644 Binary files a/docs/assets/guide/plots-flux-diagram.png and b/docs/assets/guide/plots-flux-diagram.png differ diff --git a/docs/assets/guide/plots-hovmoller.png b/docs/assets/guide/plots-hovmoller.png index fb148bf..2032ea8 100644 Binary files a/docs/assets/guide/plots-hovmoller.png and b/docs/assets/guide/plots-hovmoller.png differ diff --git a/docs/assets/guide/plots-image-grid.png b/docs/assets/guide/plots-image-grid.png index 73b74a3..7de9c4e 100644 Binary files a/docs/assets/guide/plots-image-grid.png and b/docs/assets/guide/plots-image-grid.png differ diff --git a/docs/assets/guide/plots-image-heatmap.png b/docs/assets/guide/plots-image-heatmap.png index 7f167af..46851be 100644 Binary files a/docs/assets/guide/plots-image-heatmap.png and b/docs/assets/guide/plots-image-heatmap.png differ diff --git a/docs/assets/guide/plots-model-comparison.png b/docs/assets/guide/plots-model-comparison.png index 2707c08..499d9bc 100644 Binary files a/docs/assets/guide/plots-model-comparison.png and b/docs/assets/guide/plots-model-comparison.png differ diff --git a/docs/assets/guide/plots-pareto.png b/docs/assets/guide/plots-pareto.png index 406c673..03c40b0 100644 Binary files a/docs/assets/guide/plots-pareto.png and b/docs/assets/guide/plots-pareto.png differ diff --git a/docs/assets/guide/plots-pca-rgb.png b/docs/assets/guide/plots-pca-rgb.png index e6965c3..2631864 100644 Binary files a/docs/assets/guide/plots-pca-rgb.png and b/docs/assets/guide/plots-pca-rgb.png differ diff --git a/docs/assets/guide/plots-profile-band.png b/docs/assets/guide/plots-profile-band.png index ac68aa9..1299f3d 100644 Binary files a/docs/assets/guide/plots-profile-band.png and b/docs/assets/guide/plots-profile-band.png differ diff --git a/docs/assets/guide/plots-profile.png b/docs/assets/guide/plots-profile.png index 4c0f0f5..2d3ad8f 100644 Binary files a/docs/assets/guide/plots-profile.png and b/docs/assets/guide/plots-profile.png differ diff --git a/docs/assets/guide/plots-scatter.png b/docs/assets/guide/plots-scatter.png index 71dc828..89ee840 100644 Binary files a/docs/assets/guide/plots-scatter.png and b/docs/assets/guide/plots-scatter.png differ diff --git a/docs/assets/guide/plots-scorecard-diverging.png b/docs/assets/guide/plots-scorecard-diverging.png index 349cc64..a6661d2 100644 Binary files a/docs/assets/guide/plots-scorecard-diverging.png and b/docs/assets/guide/plots-scorecard-diverging.png differ diff --git a/docs/assets/guide/plots-scorecard.png b/docs/assets/guide/plots-scorecard.png index 9cf89b2..9b4a954 100644 Binary files a/docs/assets/guide/plots-scorecard.png and b/docs/assets/guide/plots-scorecard.png differ diff --git a/docs/assets/guide/plots-spectrum.png b/docs/assets/guide/plots-spectrum.png index 6a4d21c..d0cbc11 100644 Binary files a/docs/assets/guide/plots-spectrum.png and b/docs/assets/guide/plots-spectrum.png differ diff --git a/docs/assets/guide/plots-taylor.png b/docs/assets/guide/plots-taylor.png index a68a528..7085fb0 100644 Binary files a/docs/assets/guide/plots-taylor.png and b/docs/assets/guide/plots-taylor.png differ diff --git a/docs/assets/guide/plots-timeseries-obs.png b/docs/assets/guide/plots-timeseries-obs.png index 32059d3..4c41ce3 100644 Binary files a/docs/assets/guide/plots-timeseries-obs.png and b/docs/assets/guide/plots-timeseries-obs.png differ diff --git a/docs/assets/guide/plots-timeseries.png b/docs/assets/guide/plots-timeseries.png index c00d580..2943c00 100644 Binary files a/docs/assets/guide/plots-timeseries.png and b/docs/assets/guide/plots-timeseries.png differ diff --git a/docs/assets/guide/quickstart-conventions.png b/docs/assets/guide/quickstart-conventions.png index 79548cc..3fddfbe 100644 Binary files a/docs/assets/guide/quickstart-conventions.png and b/docs/assets/guide/quickstart-conventions.png differ diff --git a/docs/assets/guide/quickstart-map.png b/docs/assets/guide/quickstart-map.png index 101dc54..08ea03b 100644 Binary files a/docs/assets/guide/quickstart-map.png and b/docs/assets/guide/quickstart-map.png differ diff --git a/docs/assets/guide/quickstart-style.png b/docs/assets/guide/quickstart-style.png index daa9dd7..8ff2455 100644 Binary files a/docs/assets/guide/quickstart-style.png and b/docs/assets/guide/quickstart-style.png differ diff --git a/docs/assets/guide/styling-roles.png b/docs/assets/guide/styling-roles.png index 1652bc5..2bfd237 100644 Binary files a/docs/assets/guide/styling-roles.png and b/docs/assets/guide/styling-roles.png differ diff --git a/docs/assets/guide/styling-talk.png b/docs/assets/guide/styling-talk.png index 303776d..fd8a9f9 100644 Binary files a/docs/assets/guide/styling-talk.png and b/docs/assets/guide/styling-talk.png differ diff --git a/docs/gallery.md b/docs/gallery.md index 1a118c0..43a0eff 100644 --- a/docs/gallery.md +++ b/docs/gallery.md @@ -302,17 +302,18 @@ both take a plain `ax` so they drop into any layout. --8<-- "examples/21_bars.py" ``` -### 30 — Scorecard, diverging {#scorecard-diverging} +### 30 — Scorecard, explicit norm {#scorecard-diverging} -[`nicefigs.scorecard`][nicefigs.scorecard]'s opt-in kwargs for a -WeatherBench2-style skill scorecard: an explicit diverging `norm` (here +The explicit-norm path of [`nicefigs.scorecard`][nicefigs.scorecard], for when the +printed numbers are themselves the quantity to colour (the default, baseline-anchored +look is example 34): an explicit diverging `norm` (here [`scorecard_diverging_cmap`][nicefigs.scorecard_diverging_cmap]) colours cells by their *actual* percent-difference value anchored at zero instead of per-column goodness ranking; `col_groups` clusters columns with a gap and a group title; `square=True` forces square cells; `colorbar=True` draws a horizontal bar with the colormap's extend triangles. -![Scorecard, diverging](gallery/30_scorecard_diverging.png) +![Scorecard, explicit norm](gallery/30_scorecard_diverging.png) ```python --8<-- "examples/30_scorecard_diverging.py" diff --git a/docs/gallery/01_global_map.png b/docs/gallery/01_global_map.png index 43de4c4..84ceabe 100644 Binary files a/docs/gallery/01_global_map.png and b/docs/gallery/01_global_map.png differ diff --git a/docs/gallery/02_anomaly_map.png b/docs/gallery/02_anomaly_map.png index d9e461a..9a11cf4 100644 Binary files a/docs/gallery/02_anomaly_map.png and b/docs/gallery/02_anomaly_map.png differ diff --git a/docs/gallery/03_regional_map.png b/docs/gallery/03_regional_map.png index 6ffe0e3..06d809b 100644 Binary files a/docs/gallery/03_regional_map.png and b/docs/gallery/03_regional_map.png differ diff --git a/docs/gallery/04_shared_colorbar.png b/docs/gallery/04_shared_colorbar.png index 75a6f4c..f489124 100644 Binary files a/docs/gallery/04_shared_colorbar.png and b/docs/gallery/04_shared_colorbar.png differ diff --git a/docs/gallery/05_ternary_map.png b/docs/gallery/05_ternary_map.png index c68fb18..747b858 100644 Binary files a/docs/gallery/05_ternary_map.png and b/docs/gallery/05_ternary_map.png differ diff --git a/docs/gallery/06_bivariate.png b/docs/gallery/06_bivariate.png index 2597a4b..54e3a82 100644 Binary files a/docs/gallery/06_bivariate.png and b/docs/gallery/06_bivariate.png differ diff --git a/docs/gallery/07_image_grid.png b/docs/gallery/07_image_grid.png index d3384f0..187e935 100644 Binary files a/docs/gallery/07_image_grid.png and b/docs/gallery/07_image_grid.png differ diff --git a/docs/gallery/08_landcover_rgb.png b/docs/gallery/08_landcover_rgb.png index bbac09f..70f0aeb 100644 Binary files a/docs/gallery/08_landcover_rgb.png and b/docs/gallery/08_landcover_rgb.png differ diff --git a/docs/gallery/09_heatmap.png b/docs/gallery/09_heatmap.png index 4e9b718..3471b32 100644 Binary files a/docs/gallery/09_heatmap.png and b/docs/gallery/09_heatmap.png differ diff --git a/docs/gallery/10_elevation.png b/docs/gallery/10_elevation.png index 9cf13a1..ff5af28 100644 Binary files a/docs/gallery/10_elevation.png and b/docs/gallery/10_elevation.png differ diff --git a/docs/gallery/11_ternary.png b/docs/gallery/11_ternary.png index ac16039..db7f7fd 100644 Binary files a/docs/gallery/11_ternary.png and b/docs/gallery/11_ternary.png differ diff --git a/docs/gallery/12_artist_palettes.png b/docs/gallery/12_artist_palettes.png index 09a857a..f42a645 100644 Binary files a/docs/gallery/12_artist_palettes.png and b/docs/gallery/12_artist_palettes.png differ diff --git a/docs/gallery/13_scatter.png b/docs/gallery/13_scatter.png index b25b90b..24a7a0f 100644 Binary files a/docs/gallery/13_scatter.png and b/docs/gallery/13_scatter.png differ diff --git a/docs/gallery/14_agreement.png b/docs/gallery/14_agreement.png index b26cbb5..3bd8d56 100644 Binary files a/docs/gallery/14_agreement.png and b/docs/gallery/14_agreement.png differ diff --git a/docs/gallery/15_timeseries.png b/docs/gallery/15_timeseries.png index 1724dbb..a432b99 100644 Binary files a/docs/gallery/15_timeseries.png and b/docs/gallery/15_timeseries.png differ diff --git a/docs/gallery/16_station_timeseries.png b/docs/gallery/16_station_timeseries.png index cedb14b..841c567 100644 Binary files a/docs/gallery/16_station_timeseries.png and b/docs/gallery/16_station_timeseries.png differ diff --git a/docs/gallery/17_model_comparison.png b/docs/gallery/17_model_comparison.png index 05055be..7ecfc1d 100644 Binary files a/docs/gallery/17_model_comparison.png and b/docs/gallery/17_model_comparison.png differ diff --git a/docs/gallery/18_pareto.png b/docs/gallery/18_pareto.png index 174624f..9668a37 100644 Binary files a/docs/gallery/18_pareto.png and b/docs/gallery/18_pareto.png differ diff --git a/docs/gallery/19_caterpillar.png b/docs/gallery/19_caterpillar.png index e54aaaf..35ab713 100644 Binary files a/docs/gallery/19_caterpillar.png and b/docs/gallery/19_caterpillar.png differ diff --git a/docs/gallery/20_scorecard.png b/docs/gallery/20_scorecard.png index 92959ee..32904e6 100644 Binary files a/docs/gallery/20_scorecard.png and b/docs/gallery/20_scorecard.png differ diff --git a/docs/gallery/21_bars.png b/docs/gallery/21_bars.png index 926807a..479cf57 100644 Binary files a/docs/gallery/21_bars.png and b/docs/gallery/21_bars.png differ diff --git a/docs/gallery/22_cross_section.png b/docs/gallery/22_cross_section.png index 3dbc876..a0895a1 100644 Binary files a/docs/gallery/22_cross_section.png and b/docs/gallery/22_cross_section.png differ diff --git a/docs/gallery/23_composite_figure.png b/docs/gallery/23_composite_figure.png index 2e45915..a277f4b 100644 Binary files a/docs/gallery/23_composite_figure.png and b/docs/gallery/23_composite_figure.png differ diff --git a/docs/gallery/24_animation.gif b/docs/gallery/24_animation.gif index 08f6bd5..07215ae 100644 Binary files a/docs/gallery/24_animation.gif and b/docs/gallery/24_animation.gif differ diff --git a/docs/gallery/25_taylor.png b/docs/gallery/25_taylor.png index 31f4678..85c09d2 100644 Binary files a/docs/gallery/25_taylor.png and b/docs/gallery/25_taylor.png differ diff --git a/docs/gallery/26_hovmoller.png b/docs/gallery/26_hovmoller.png index 7ba5e3b..720fc71 100644 Binary files a/docs/gallery/26_hovmoller.png and b/docs/gallery/26_hovmoller.png differ diff --git a/docs/gallery/27_profile.png b/docs/gallery/27_profile.png index 33382b9..af7e305 100644 Binary files a/docs/gallery/27_profile.png and b/docs/gallery/27_profile.png differ diff --git a/docs/gallery/28_render_animation.gif b/docs/gallery/28_render_animation.gif index 536f9f5..9093ca3 100644 Binary files a/docs/gallery/28_render_animation.gif and b/docs/gallery/28_render_animation.gif differ diff --git a/docs/gallery/29_timeseries_obs_hue.png b/docs/gallery/29_timeseries_obs_hue.png index 461e137..7cbf41a 100644 Binary files a/docs/gallery/29_timeseries_obs_hue.png and b/docs/gallery/29_timeseries_obs_hue.png differ diff --git a/docs/gallery/30_scorecard_diverging.png b/docs/gallery/30_scorecard_diverging.png index 534ed53..457de35 100644 Binary files a/docs/gallery/30_scorecard_diverging.png and b/docs/gallery/30_scorecard_diverging.png differ diff --git a/docs/gallery/31_panel_label_with_title.png b/docs/gallery/31_panel_label_with_title.png index 255b5a9..1c604cb 100644 Binary files a/docs/gallery/31_panel_label_with_title.png and b/docs/gallery/31_panel_label_with_title.png differ diff --git a/docs/gallery/32_spectrum.png b/docs/gallery/32_spectrum.png index cdace3f..b49422a 100644 Binary files a/docs/gallery/32_spectrum.png and b/docs/gallery/32_spectrum.png differ diff --git a/docs/gallery/33_flux_diagram.png b/docs/gallery/33_flux_diagram.png index 31f7d3f..4d7cd01 100644 Binary files a/docs/gallery/33_flux_diagram.png and b/docs/gallery/33_flux_diagram.png differ diff --git a/docs/gallery/34_scorecard_baseline.png b/docs/gallery/34_scorecard_baseline.png index e4f8729..48a2696 100644 Binary files a/docs/gallery/34_scorecard_baseline.png and b/docs/gallery/34_scorecard_baseline.png differ diff --git a/docs/gallery/35_schematic.png b/docs/gallery/35_schematic.png index 809e2e5..d9d928e 100644 Binary files a/docs/gallery/35_schematic.png and b/docs/gallery/35_schematic.png differ diff --git a/docs/gallery/guide_maps_data.png b/docs/gallery/guide_maps_data.png index fb40992..51b985f 100644 Binary files a/docs/gallery/guide_maps_data.png and b/docs/gallery/guide_maps_data.png differ diff --git a/docs/guide/maps.md b/docs/guide/maps.md index 492be64..2caeef2 100644 --- a/docs/guide/maps.md +++ b/docs/guide/maps.md @@ -120,7 +120,7 @@ nf.set_theme("paper") da = data.global_dataarray() lon, lat, field = nf.from_xarray(da) -fig, ax, mappable = nf.map(da, cmap="Spectral_r", colorbar_label="t2m [°C]") +fig, ax, mappable = nf.map(da, cmap="RdYlBu_r", colorbar_label="t2m [°C]") print(da.dims, field.shape) ``` diff --git a/docs/guide/plots.md b/docs/guide/plots.md index 33b895a..b4cfb16 100644 --- a/docs/guide/plots.md +++ b/docs/guide/plots.md @@ -45,13 +45,18 @@ from nicefigs import data nf.set_theme("paper") images = [data.regional_grid(seed=i)[2] for i in range(6)] +lim = max(abs(img).max() for img in images) fig, axes = nf.image_grid( images, nrows=2, ncols=3, width="full", - cmap="Spectral_r", - colorbar_label="value", + cmap="RdBu_r", + vmin=-lim, + vmax=lim, + panel_aspect=0.62, + hspace=0.3, + colorbar_label="anomaly [σ]", titles=[f"member {i + 1}" for i in range(6)], ) nf.label_panels(axes) @@ -81,6 +86,8 @@ ax, artists = nf.scatter( d["x"], d["y"], group=d["group"], size=d["size"], size_label="area [km²]", alpha=0.8 ) nf.set_labels(ax, "predictor", "response") +ax.set_xlim(-0.5, 12.5) +ax.set_ylim(top=11.5) print(sorted(artists)) ``` diff --git a/examples/03_regional_map.py b/examples/03_regional_map.py index 0a3cd19..cd83aa3 100644 --- a/examples/03_regional_map.py +++ b/examples/03_regional_map.py @@ -15,12 +15,12 @@ def make(): projection="platecarree", kind="binned", bin_deg=0.15, - cmap="Spectral_r", + diverging=True, inset_hist=False, cbar=True, - colorbar_label="soil moisture [m³ m⁻³]", + colorbar_label="soil-moisture anomaly [σ]", borders=True, - title="Regional field (Central Europe)", + title="Regional anomaly (Central Europe)", ) return fig diff --git a/examples/07_image_grid.py b/examples/07_image_grid.py index 6fc356e..91de305 100644 --- a/examples/07_image_grid.py +++ b/examples/07_image_grid.py @@ -7,12 +7,17 @@ def make(): nf.set_theme("paper") imgs = [data.regional_grid(seed=i)[2] for i in range(6)] + lim = max(abs(img).max() for img in imgs) # signed anomalies: colour limits symmetric about zero fig, axes = nf.image_grid( imgs, nrows=2, ncols=3, - cmap="Spectral_r", - colorbar_label="value", + cmap="RdBu_r", + vmin=-lim, + vmax=lim, + panel_aspect=0.62, + hspace=0.3, + colorbar_label="anomaly [σ]", titles=[f"member {i + 1}" for i in range(6)], ) nf.label_panels(axes) diff --git a/examples/09_heatmap.py b/examples/09_heatmap.py index 5c68976..3b25427 100644 --- a/examples/09_heatmap.py +++ b/examples/09_heatmap.py @@ -11,7 +11,6 @@ def make(): data.heatmap_matrix(shape=(6, 9)), row_labels=[f"model {i + 1}" for i in range(6)], col_labels=[f"lead {i + 1}" for i in range(9)], - cmap="Spectral_r", annotate=True, ax=ax, ) diff --git a/examples/13_scatter.py b/examples/13_scatter.py index 0804ff5..ebc1a30 100644 --- a/examples/13_scatter.py +++ b/examples/13_scatter.py @@ -18,6 +18,8 @@ def make(): ax=ax, ) nf.set_labels(ax, "predictor", "response") + ax.set_xlim(-0.5, 12.5) # headroom on the right for the size legend + ax.set_ylim(top=11.5) # and on top for the group legend return fig diff --git a/examples/15_timeseries.py b/examples/15_timeseries.py index 2962638..70a82bf 100644 --- a/examples/15_timeseries.py +++ b/examples/15_timeseries.py @@ -19,6 +19,7 @@ def make(): yunits="degC", title="Daily air temperature", ) + ax.set_ylim(top=46) # headroom above the seasonal peak for the legend return ax.figure diff --git a/examples/23_composite_figure.py b/examples/23_composite_figure.py index 36216ad..946999e 100644 --- a/examples/23_composite_figure.py +++ b/examples/23_composite_figure.py @@ -11,8 +11,8 @@ def make(): nf.set_theme("paper") - fig = nf.figure(width="full", aspect=0.62) - gs = fig.add_gridspec(2, 2, height_ratios=[1.15, 1.0], hspace=0.42, wspace=0.32) + fig = nf.figure(width="full", aspect=0.8) + gs = fig.add_gridspec(2, 2, height_ratios=[1.5, 1.0], hspace=0.42, wspace=0.32) # (a) global map spanning the top row ax_map, ccrs = nf.make_map_axes(fig, gs[0, :], projection="robinson") diff --git a/examples/30_scorecard_diverging.py b/examples/30_scorecard_diverging.py index 4f3081e..59056ae 100644 --- a/examples/30_scorecard_diverging.py +++ b/examples/30_scorecard_diverging.py @@ -1,4 +1,9 @@ -"""Scorecard with the WeatherBench2-inspired diverging colormap, grouped columns, and a colour bar.""" +"""Scorecard coloured by its printed values through an explicit ``norm`` (the colour-by-value path). + +The default, baseline-anchored look (text is the raw value, colour the percent better than a +baseline) is shown in example 34. Pass ``cmap`` and ``norm`` as here when the printed numbers +are themselves the quantity to colour, e.g. percent differences. +""" import numpy as np @@ -33,7 +38,7 @@ def make(): cell_format="{:+.0f}", colorbar=True, colorbar_label="RMSE difference vs. Persistence [%]", - title="Scorecard vs. Persistence baseline", + title="Colour = printed value (explicit norm)", ) return ax.figure diff --git a/examples/guide_maps_data.py b/examples/guide_maps_data.py index 37386ef..7f8db92 100644 --- a/examples/guide_maps_data.py +++ b/examples/guide_maps_data.py @@ -12,13 +12,14 @@ def make(): nf.set_theme("paper") fig = nf.figure(width="full", aspect=0.3) + fig.subplots_adjust(wspace=0.28) # (a) gridded field (the xarray/zarr case) — pcolormesh ax1, ccrs = nf.make_map_axes(fig, (1, 2, 1), projection="robinson") lon, lat, z = data.global_grid(res=2.0) nf.draw_background(ax1, ccrs) ax1.set_extent(nf.maps.ANTARCTICA_CUTOFF_EXTENT, crs=ccrs.PlateCarree()) - _, m1 = nf.raster_map(lon, lat, z, ccrs=ccrs, cmap="Spectral_r", ax=ax1) + _, m1 = nf.raster_map(lon, lat, z, ccrs=ccrs, cmap="RdYlBu_r", ax=ax1) nf.colorbar(m1, ax1, label="T [°C]") nf.panel_label(ax1, "a", "gridded (pcolormesh)") diff --git a/pyproject.toml b/pyproject.toml index 8d56fe7..1bdc794 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ all = [ docs = [ "mkdocs-material>=9.5", "mkdocstrings[python]>=0.24", + "pymdown-extensions>=10,<12", ] dev = [ "nicefigs[maps,xarray]", diff --git a/src/nicefigs/bars.py b/src/nicefigs/bars.py index 0269aad..2f5d7e3 100644 --- a/src/nicefigs/bars.py +++ b/src/nicefigs/bars.py @@ -55,7 +55,8 @@ def grouped( value_label: y-axis label. value_units: Unit appended to ``value_label``. baseline: y value of a dashed reference line. - legend: Add a legend when there is more than one series. + legend: Add a legend when there is more than one series, in a row above the axes + (right-aligned, no frame) so that it never covers a bar. rotation: Category tick-label rotation (degrees). edgecolor: Bar edge colour. @@ -100,7 +101,14 @@ def grouped( ax.grid(axis="y", alpha=0.15, linewidth=0.5) ax.set_axisbelow(True) if legend and nser > 1: - ax.legend(loc="best", fontsize=th.fs_legend, ncol=min(nser, 3)) + ax.legend( + loc="lower right", + bbox_to_anchor=(1.0, 1.0), + borderaxespad=0.2, + frameon=False, + fontsize=th.fs_legend, + ncol=min(nser, 4), + ) return ax diff --git a/src/nicefigs/hovmoller.py b/src/nicefigs/hovmoller.py index a49da04..e4eb1ec 100644 --- a/src/nicefigs/hovmoller.py +++ b/src/nicefigs/hovmoller.py @@ -7,8 +7,8 @@ import numpy as np +from .palettes import DEFAULTS, robust_limits, symmetric_limits from .palettes import cmap as resolve_cmap -from .palettes import robust_limits, symmetric_limits from .style import get_theme from .units import axis_label @@ -33,7 +33,7 @@ def hovmoller( z: ArrayLike, *, ax: Axes | None = None, - cmap: str | Colormap = "Spectral_r", + cmap: str | Colormap | None = None, vmin: float | None = None, vmax: float | None = None, norm: Normalize | None = None, @@ -57,12 +57,12 @@ def hovmoller( y: Spatial coordinate of length ``ny``, e.g. latitude. z: Field of shape ``(nt, ny)``. ax: Axes to draw on; a new figure is created when ``None``. - cmap: Colormap name or object. + cmap: Colormap name or object; ``None`` picks ``RdBu_r`` for ``diff`` and the sequential + default (``inferno``) otherwise. vmin: Lower colour limit; derived from ``z`` if ``None``. vmax: Upper colour limit; derived from ``z`` if ``None``. norm: Colour normalisation; overrides ``vmin``/``vmax``. - diff: Treat ``z`` as a difference: symmetric limits, and ``RdBu_r`` when - ``cmap`` is left at its default. + diff: Treat ``z`` as a difference: symmetric limits about zero. robust: Derive limits from the 2nd/98th percentiles instead of min/max. colorbar: Draw a colorbar. Defaults to ``True`` when this call creates the figure and ``False`` when drawing onto a supplied ``ax``. @@ -82,8 +82,8 @@ def hovmoller( th = get_theme() y = np.asarray(y, dtype=float) z = np.asarray(z, dtype=float) - if diff and cmap == "Spectral_r": - cmap = "RdBu_r" + if cmap is None: + cmap = "RdBu_r" if diff else DEFAULTS["sequential"] if norm is None and (vmin is None or vmax is None): if diff: lo, hi = symmetric_limits(z) @@ -139,7 +139,7 @@ def hovmoller_panels( y: ArrayLike, *, diff_fields: Collection[str] = (), - value_cmap: str | Colormap = "Spectral_r", + value_cmap: str | Colormap = DEFAULTS["sequential"], diff_cmap: str | Colormap = "RdBu_r", value_label: str = "", diff_label: str = "", diff --git a/src/nicefigs/images.py b/src/nicefigs/images.py index fb71035..dafa255 100644 --- a/src/nicefigs/images.py +++ b/src/nicefigs/images.py @@ -11,8 +11,8 @@ from .colorbars import colorbar from .figure import subplots +from .palettes import DEFAULTS, robust_limits from .palettes import cmap as resolve_cmap -from .palettes import robust_limits from .style import get_theme if TYPE_CHECKING: @@ -247,7 +247,7 @@ def heatmap( ax: Axes | None = None, row_labels: Sequence[str] | None = None, col_labels: Sequence[str] | None = None, - cmap: str = "Spectral_r", + cmap: str = DEFAULTS["sequential"], vmin: float | None = None, vmax: float | None = None, norm: Normalize | None = None, diff --git a/src/nicefigs/pareto.py b/src/nicefigs/pareto.py index 9875445..7b75ead 100644 --- a/src/nicefigs/pareto.py +++ b/src/nicefigs/pareto.py @@ -133,7 +133,8 @@ def pareto( frontier_per_group: Draw one colour-matched frontier per ``group`` instead of one for all points. frontier_kwargs: Overrides for the frontier :meth:`~matplotlib.axes.Axes.plot` style. - baselines: ``{label: y}`` labelled horizontal reference lines. + baselines: ``{label: y}`` horizontal reference lines, labelled at the left edge on a white + backing. baseline_colors: ``{label: colour}`` for ``baselines``; defaults to greys. xlabel: x-axis label. ylabel: y-axis label. @@ -220,14 +221,16 @@ def pareto( col = bc.get(label, fallback[i % len(fallback)]) ax.axhline(val, color=col, linestyle=":", linewidth=0.8, zorder=2) ax.text( - 0.995, + 0.01, val, - f" {label} ({val:.3g})", + f"{label} ({val:.3g})", transform=ax.get_yaxis_transform(), - ha="right", + ha="left", va="bottom", fontsize=th.fs_annot, color=col, + bbox={"facecolor": "white", "edgecolor": "none", "alpha": 0.85, "pad": 0.6}, + zorder=2.5, ) from .units import axis_label diff --git a/src/nicefigs/sections.py b/src/nicefigs/sections.py index 343099f..46e4e36 100644 --- a/src/nicefigs/sections.py +++ b/src/nicefigs/sections.py @@ -9,8 +9,8 @@ from .figure import subplots from .lines import band +from .palettes import DEFAULTS, qualitative, robust_limits, symmetric_limits from .palettes import cmap as resolve_cmap -from .palettes import qualitative, robust_limits, symmetric_limits from .style import get_theme if TYPE_CHECKING: @@ -127,8 +127,10 @@ def profile( from .units import axis_label - ax.set_xlabel(axis_label(xlabel, xunits)) - ax.set_ylabel(axis_label(ylabel, yunits)) + if xlabel: + ax.set_xlabel(axis_label(xlabel, xunits)) + if ylabel: + ax.set_ylabel(axis_label(ylabel, yunits)) if title: ax.set_title(title, fontsize=th.fs_title, loc="left", pad=3) if legend and (len(names) > 1 or baselines): @@ -142,7 +144,7 @@ def cross_section( z: ArrayLike, *, ax: Axes | None = None, - cmap: str | Colormap = "Spectral_r", + cmap: str | Colormap | None = None, vmin: float | None = None, vmax: float | None = None, norm: Normalize | None = None, @@ -163,16 +165,16 @@ def cross_section( x: Horizontal coordinate of length ``nx`` (e.g. latitude). y: Vertical coordinate of length ``ny`` (e.g. pressure). z: Field of shape ``(nx, ny)``. - cmap: Colormap name or object. + cmap: Colormap name or object; ``None`` picks ``RdBu_r`` for ``diff`` and the sequential + default (``inferno``) otherwise. vmin: Lower colour limit; derived from ``z`` if ``None``. vmax: Upper colour limit; derived from ``z`` if ``None``. norm: Colour normalisation; overrides ``vmin``/``vmax``. - diff: Treat ``z`` as a difference: symmetric limits, and ``RdBu_r`` when - ``cmap`` is left at its default. + diff: Treat ``z`` as a difference: symmetric limits about zero. robust: Derive limits from the 2nd/98th percentiles instead of min/max. invert_y: Invert the vertical axis (surface at the bottom for pressure). - xlabel: x-axis label. - ylabel: y-axis label. + xlabel: x-axis label; ``""`` leaves the axis unlabelled. + ylabel: y-axis label; ``""`` leaves the axis unlabelled. xunits: Units appended to the x-axis label. yunits: Units appended to the y-axis label. title: Axes title. @@ -187,8 +189,8 @@ def cross_section( x = np.asarray(x, dtype=float) y = np.asarray(y, dtype=float) z = np.asarray(z, dtype=float) - if diff and cmap == "Spectral_r": - cmap = "RdBu_r" + if cmap is None: + cmap = "RdBu_r" if diff else DEFAULTS["sequential"] if norm is None and (vmin is None or vmax is None): if diff: lo, hi = symmetric_limits(z) @@ -213,8 +215,10 @@ def cross_section( from .units import axis_label - ax.set_xlabel(axis_label(xlabel, xunits)) - ax.set_ylabel(axis_label(ylabel, yunits)) + if xlabel: + ax.set_xlabel(axis_label(xlabel, xunits)) + if ylabel: + ax.set_ylabel(axis_label(ylabel, yunits)) if title: ax.set_title(title, fontsize=th.fs_title, loc="left", pad=3) return ax, mesh @@ -226,7 +230,7 @@ def cross_section_panels( y: ArrayLike, *, diff_fields: Collection[str] = (), - value_cmap: str | Colormap = "Spectral_r", + value_cmap: str | Colormap = DEFAULTS["sequential"], diff_cmap: str | Colormap = "RdBu_r", value_label: str = "", diff_label: str = "", diff --git a/tests/test_api_bars.py b/tests/test_api_bars.py index e20c4ef..ad32dcc 100644 --- a/tests/test_api_bars.py +++ b/tests/test_api_bars.py @@ -38,3 +38,11 @@ def test_stacked_normalize_keeps_empty_category_at_zero(ax): tops = [p.get_y() + p.get_height() for p in ax.patches] assert max(tops) == pytest.approx(1.0) assert np.isfinite(tops).all() + + +def test_grouped_legend_sits_above_the_axes_not_over_the_bars(ax): + nf.grouped_bars(["a", "b"], {"s1": [1.0, 2.0], "s2": [2.0, 3.0]}, ax=ax) + leg = ax.get_legend() + assert leg is not None + ax.figure.canvas.draw() + assert leg.get_window_extent().y0 >= ax.get_window_extent().y1 - 1 diff --git a/tests/test_api_pareto.py b/tests/test_api_pareto.py index 80d43f7..8f68f43 100644 --- a/tests/test_api_pareto.py +++ b/tests/test_api_pareto.py @@ -39,3 +39,14 @@ def test_frontier_keeps_tied_duplicates(): x = np.array([0.0, 0.0, 1.0]) y = np.array([1.0, 1.0, 0.0]) assert sorted(nf.frontier(x, y).tolist()) == [0, 1] + + +def test_baseline_labels_sit_at_the_left_edge(): + import matplotlib.pyplot as plt + + ax, _ = nf.pareto([1.0, 2.0, 3.0], [3.0, 2.0, 1.0], baselines={"ref": 2.5}) + try: + labels = [t for t in ax.texts if t.get_text().startswith("ref")] + assert len(labels) == 1 and labels[0].get_ha() == "left" + finally: + plt.close(ax.figure) diff --git a/tests/test_api_sections.py b/tests/test_api_sections.py index f1ea9b2..23d7058 100644 --- a/tests/test_api_sections.py +++ b/tests/test_api_sections.py @@ -61,3 +61,39 @@ def test_profile_bands_shade_the_given_range_in_the_profile_colour(): assert xs.min() == -1.0 and xs.max() == 2.0 np.testing.assert_allclose(band.get_facecolor()[0], to_rgba("#4477AA", 0.3)) assert ax.get_legend() is None or "obs" not in [t.get_text() for t in ax.get_legend().get_texts()][1:] + + +def test_field_plots_default_to_the_sequential_colormap_and_diff_to_diverging(): + h = npd.hovmoller_field() + cs = npd.cross_section_field() + heat = np.random.default_rng(0).random((3, 4)) + for diff, name in ((False, "inferno"), (True, "RdBu_r")): + ax, m = nf.hovmoller(h["times"], h["lats"], h["value"], diff=diff) + assert m.get_cmap().name == name + plt.close(ax.figure) + ax, m = nf.cross_section(cs["lats"], cs["levels"], cs["value"], diff=diff) + assert m.get_cmap().name == name + plt.close(ax.figure) + fig, axes = nf.cross_section_panels({"v": cs["value"]}, cs["lats"], cs["levels"]) + assert axes.ravel()[0].collections[0].get_cmap().name == "inferno" + plt.close(fig) + ax, im = nf.heatmap(heat) + assert im.get_cmap().name == "inferno" + plt.close(ax.figure) + + +def test_explicit_cmap_is_kept_with_diff(): + h = npd.hovmoller_field() + ax, m = nf.hovmoller(h["times"], h["lats"], h["value"], diff=True, cmap="PuOr") + assert m.get_cmap().name == "PuOr" + plt.close(ax.figure) + + +def test_cross_section_empty_label_leaves_axis_unlabelled(field): + x, y, z = field + _, ax = nf.subplots() + try: + nf.cross_section(x, y, z, ylabel="", ax=ax) + assert ax.get_ylabel() == "" + finally: + plt.close(ax.figure) diff --git a/uv.lock b/uv.lock index 83f136c..a0ba2ee 100644 --- a/uv.lock +++ b/uv.lock @@ -1842,7 +1842,7 @@ dependencies = [ { name = "mkdocs-material-extensions" }, { name = "paginate" }, { name = "pygments" }, - { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" } }, + { name = "pymdown-extensions" }, { name = "requests" }, ] sdist = { url = "https://files.pythonhosted.org/packages/f1/cd/c05d3a530ba7934f144fb45f7203cd236adc25c7bdcc34673d202f4b0278/mkdocs_material-9.7.7.tar.gz", hash = "sha256:c0649c065b1b0512d60aad8c10f947f8e455284475239b364b610f2deb4d0855", size = 4097923, upload-time = "2026-07-17T16:21:33.156Z" } @@ -1878,8 +1878,7 @@ dependencies = [ { name = "mkdocs-material-extensions" }, { name = "paginate" }, { name = "pygments" }, - { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11.5'" }, - { name = "pymdown-extensions", version = "13.1.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11.5'" }, + { name = "pymdown-extensions" }, { name = "requests" }, ] sdist = { url = "https://files.pythonhosted.org/packages/99/bf/c47389fa622b513c2d115eb4c16075ef04a5f4d8156039f46cb26e5c70a9/mkdocs_material-9.8.2.tar.gz", hash = "sha256:005d942bdbfa22efa049f4818c31d42fb36bed6d362adb641dd7a2e948078f9d", size = 4160697, upload-time = "2026-11-19T19:52:25.799Z" } @@ -1909,7 +1908,7 @@ dependencies = [ { name = "markupsafe" }, { name = "mkdocs" }, { name = "mkdocs-autorefs", version = "1.4.4", source = { registry = "https://pypi.org/simple" } }, - { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" } }, + { name = "pymdown-extensions" }, ] sdist = { url = "https://files.pythonhosted.org/packages/53/71/f85bdf13355073ae15a7375f09879375a830553552e58c1c4b7e0bbc5c8b/mkdocstrings-1.0.6.tar.gz", hash = "sha256:a0b8c2bdd29a6416c80d717aa369bbf7831946bd9f23c2a66db1b1dbe7693dbd", size = 100649, upload-time = "2026-07-11T19:38:05.732Z" } wheels = [ @@ -1945,8 +1944,7 @@ dependencies = [ { name = "markupsafe" }, { name = "mkdocs" }, { name = "mkdocs-autorefs", version = "1.4.5", source = { registry = "https://pypi.org/simple" } }, - { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11.5'" }, - { name = "pymdown-extensions", version = "13.1.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11.5'" }, + { name = "pymdown-extensions" }, ] sdist = { url = "https://files.pythonhosted.org/packages/27/cc/e3ed8b16851f5d664dffcf8f55fc60d0d3f736a3edca21d1508105d1255a/mkdocstrings-1.0.8.tar.gz", hash = "sha256:b50fc326230906425c82ee9ec59b80e5db00892b2b593d4d0b841a0d4acf537b", size = 107444, upload-time = "2026-10-19T15:43:02.157Z" } wheels = [ @@ -2141,6 +2139,7 @@ docs = [ { name = "mkdocs-material", version = "9.8.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, { name = "mkdocstrings", version = "1.0.6", source = { registry = "https://pypi.org/simple" }, extra = ["python"], marker = "python_full_version < '3.11'" }, { name = "mkdocstrings", version = "1.0.8", source = { registry = "https://pypi.org/simple" }, extra = ["python"], marker = "python_full_version >= '3.11'" }, + { name = "pymdown-extensions" }, ] maps = [ { name = "cartopy", version = "0.25.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, @@ -2165,6 +2164,7 @@ requires-dist = [ { name = "numpy", specifier = ">=1.23" }, { name = "pillow", specifier = ">=9.0" }, { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=3.5" }, + { name = "pymdown-extensions", marker = "extra == 'docs'", specifier = ">=10,<12" }, { name = "pytest", marker = "extra == 'dev'", specifier = ">=7.0" }, { name = "scipy", specifier = ">=1.10" }, { name = "shapely", marker = "extra == 'all'", specifier = ">=2.0" }, @@ -2927,46 +2927,16 @@ wheels = [ [[package]] name = "pymdown-extensions" -version = "12.3" +version = "11.0.2" source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.11' and python_full_version < '3.11.5' and sys_platform == 'win32'", - "python_full_version >= '3.11' and python_full_version < '3.11.5' and sys_platform == 'emscripten'", - "python_full_version >= '3.11' and python_full_version < '3.11.5' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version < '3.11'", -] dependencies = [ - { name = "markdown", version = "3.10.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' or python_full_version >= '3.11.5'" }, - { name = "markdown", version = "3.11.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' and python_full_version < '3.11.5'" }, - { name = "pyyaml" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/f3/fe/ac50ee24a80a1b344e643f6fb626063cc7041b978cd1dd9a7f9963ae1cd1/pymdown_extensions-12.3.tar.gz", hash = "sha256:a7f2a4e0bc60c6e6babfa7922cfb3b01cd640eb00fb208f3c582e12bae00ea67", size = 870532, upload-time = "2026-10-14T22:40:43.252Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/d0/758afe732c2da502c051b4d03ff88daa3c0fc1a1e671e6c5a6318177bab4/pymdown_extensions-12.3-py3-none-any.whl", hash = "sha256:345493a8e3497e24382902903a1c43a28e34a52f2b7571a1c9641429b820ca74", size = 277597, upload-time = "2026-10-14T22:40:41.543Z" }, -] - -[[package]] -name = "pymdown-extensions" -version = "13.1.2" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.14' and sys_platform == 'win32'", - "python_full_version >= '3.14' and sys_platform == 'emscripten'", - "python_full_version >= '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'win32'", - "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'emscripten'", - "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'win32'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'emscripten'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -dependencies = [ - { name = "markdown", version = "3.11.3", source = { registry = "https://pypi.org/simple" } }, + { name = "markdown", version = "3.10.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "markdown", version = "3.11.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, { name = "pyyaml" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fc/68/6da10ec6620ea74b621437f2d20df2e96f1c44dc3976c7136de4ebd0cc68/pymdown_extensions-13.1.2.tar.gz", hash = "sha256:724701395585d027fb18a6ad3377636570bac4f2917ed809f06cbc811d7e60bb", size = 902399, upload-time = "2026-11-20T18:44:39.775Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ad/17/2db4b414de89659144488e0d9c6c0bf0c8395841dc12d81d0532cc6ef310/pymdown_extensions-11.0.2.tar.gz", hash = "sha256:9506fcbe66fa355a775b768084334238dd6805020ac4b92bea0c0dda6f8f223d", size = 855419, upload-time = "2026-08-22T19:28:47.236Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d4/4d/bef5fe206736149372215c13663d95eb13a377dca8bf95d4043afe088322/pymdown_extensions-13.1.2-py3-none-any.whl", hash = "sha256:20eec6babdadcdb47b5a91b3e69ff9f846d506e887125dcb027518c47d412693", size = 286286, upload-time = "2026-11-20T18:44:38.081Z" }, + { url = "https://files.pythonhosted.org/packages/a6/43/9f45ec4d14e596efc32c925a78104934790438b0c0628b70d741016734ad/pymdown_extensions-11.0.2-py3-none-any.whl", hash = "sha256:259910762019732caa1dfd76f3faa62c59f191d46573e80bcb1d13c0f675bbe5", size = 269929, upload-time = "2026-08-22T19:28:45.389Z" }, ] [[package]]