psyplot/psyplot: v1.3.0: New repository, presets and compatibility fixes
Creators
- 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 acatch
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 theCFDecoder
class, a sub class ofCFDecoder
, or keyword arguments that are used to initialize the decoder, see #20. Furthermore, thecheck_data
method of the various plotmethods now also accept adecoder
parameter, see #22psyplot.data.open_dataset
now decodes grid_mappings attributes, see #17psyplot 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 newformat_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 acmap
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
- psyplot has been moved from https://github.com/Chilipp/psyplot to https://github.com/psyplot/psyplot, see #16
- Specifying names in
x
,y
,t
andz
attributes of theCFDecoder
class now means that any other attribute (such as thecoordinates
oraxis
attribute) are ignored - If a given variable cannot be found in the provided coords to
CFDecoder.get_variable_by_axis
, we fall back to theCFDecoder.ds.coords
attribute, see #19 - A bug has been fixed for initializing a
CFDecoder
withx, y, z
andt
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
- Is supplement to
- https://github.com/psyplot/psyplot/tree/v1.3.0 (URL)