Repository navigation
v1.3.2
v1.3.2
New
nc.panel_plot()— draws a grid ofpub_plot-style maps from a
dictionary of{title: dataset}. Panels share one colour scale and one
colour bar by default, worked out from the data of every panel together, so
they can be compared directly. Setshared_colourbar=Falseto give each
panel its own colour scale and colour bar instead. The grid layout
(nrow/ncol) is chosen automatically if not given.- Any
panel_plotargument — including the ones it shares with
pub_plot, such asvar,extent,land,coloursandlimits—
can be a single value applied to every panel, or a list with one value per
panel. Colour-bar arguments (colours,norm,limits,robust,
legend,legend_position,breaks,font) must stay single values when
shared_colourbar=True. pub_plot(grid_labels=False)hides the lon/lat labels around the map,
independently ofgrid, which now only controls the grid lines.
Fixed
pub_plot:
dpiwas silently ignored; saved figures always used matplotlib's default
resolution rather than the requested one.coast=Noneraised aValueErrorinstead of turning coastlines off.coast="coarse"/"low"/"intermediate"/"high"/"full"all produced the
same coastline resolution.- A user-supplied
projectionwas silently overridden with Robinson whenever
the data covered the whole globe. - A custom
legendwas placed beside the colour bar instead of underneath it
whenlegend_position="bottom".
panel_plot:
out="~/some/path.png"failed withFileNotFoundError;~is now
expanded to the home directory, matchingto_nc.
Documentation
- Every
pub_plotparameter is now documented in detail, both in the
function's docstring and on the website: accepted formats, valid options
and default behaviour, including previously undocumented arguments
(grid_colour,font,fig/gs,relief). panel_plotis documented on the API reference and on the visualization
guide, with worked examples (a shared seasonal climatology, per-panel
colour bars, and a fine-tuning example varyingland,grid,colours
andlimitsper panel) and a gallery ofpub_plotoptions.