There is a newer version of the record available.

Published September 30, 2020 | Version v1.3.0
Software Open

psyplot/psyplot: v1.3.0: New repository, presets and compatibility fixes

  • 1. Helmholtz-Zentrum Geesthacht - Centre for Materials and Coastal Research
  • 2. Visionscarto.net

Description

Added

  • You can now save and load presets for the formatoptions of a project which applies the formatoptions that you stored in a file to a specific plot method, see #24

  • the rcParams do now have a catch method that allows a temporary change of formatoptions.

    Usage:

    rcParams['some_key'] = 0
    with rcParams.catch():
        rcParams['some_key'] = 1
        assert rcParams['some_key'] == 1
    assert rcParams['some_key'] == 0
    
  • ArrayList.from_dataset (and consecutively all plotmethods) now support different input types for the decoder. You can pass an instance of the CFDecoder class, a sub class of CFDecoder, or keyword arguments that are used to initialize the decoder, see #20. Furthermore, the check_data method of the various plotmethods now also accept a decoder parameter, see #22

  • psyplot.data.open_dataset now decodes grid_mappings attributes, see #17
  • psyplot projects now support the with syntax, e.g. something like:

    with psy.plot.mapplot('file.nc') as sp:
        sp.export('output.png')
    

    sp will be closed automatically (see #18)

  • the update to variables with other dimensions works now as well (see #22)

  • a psyplot.project.Project now has a new format_string method to format a string with the meta attributes of the data in the projects
  • The ArrayList class now supports filtering by formatoption keys. You can filter for plotters that have a cmap formatoption via:

    sp1 = psy.plot.mapplot(ds)
    sp2 = psy.plot.lineplot(ds)
    full_sp = sp1 + sp2
    full_sp(fmts='cmap')  # gives equivalent results as addressing sp1 directly
    
Changed
  • psyplot has been moved from https://github.com/Chilipp/psyplot to https://github.com/psyplot/psyplot, see #16
  • Specifying names in x, y, t and z attributes of the CFDecoder class now means that any other attribute (such as the coordinates or axis attribute) are ignored
  • If a given variable cannot be found in the provided coords to CFDecoder.get_variable_by_axis, we fall back to the CFDecoder.ds.coords attribute, see #19
  • A bug has been fixed for initializing a CFDecoder with x, y, z and t parameters (see #20)

Files

psyplot/psyplot-v1.3.0.zip

Files (15.5 MB)

Name Size Download all
md5:0109d151c90fa4d1b5924310c3dcde5d
15.5 MB Preview Download

Additional details

Related works