Skip to content

v1.3.2

Choose a tag to compare

@robertjwilson robertjwilson released this 23 Sep 08:29
· 99 commits to master since this release

v1.3.2

New

  • nc.panel_plot() — draws a grid of pub_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. Set shared_colourbar=False to give each
    panel its own colour scale and colour bar instead. The grid layout
    (nrow/ncol) is chosen automatically if not given.
  • Any panel_plot argument — including the ones it shares with
    pub_plot, such as var, extent, land, colours and limits —
    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 of grid, which now only controls the grid lines.

Fixed

pub_plot:

  • dpi was silently ignored; saved figures always used matplotlib's default
    resolution rather than the requested one.
  • coast=None raised a ValueError instead of turning coastlines off.
  • coast="coarse"/"low"/"intermediate"/"high"/"full" all produced the
    same coastline resolution.
  • A user-supplied projection was silently overridden with Robinson whenever
    the data covered the whole globe.
  • A custom legend was placed beside the colour bar instead of underneath it
    when legend_position="bottom".

panel_plot:

  • out="~/some/path.png" failed with FileNotFoundError; ~ is now
    expanded to the home directory, matching to_nc.

Documentation

  • Every pub_plot parameter 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_plot is 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 varying land, grid, colours
    and limits per panel) and a gallery of pub_plot options.