There is a newer version of the record available.

Published October 13, 2020 | Version v1.3.0
Software Open

psyplot/psy-simple: v1.3.0: New background and mask formatoptions and more options for colorbar bounds

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

Description

New background and mask formatoptions and more options for colorbar bounds

Added
  • a new background formatoption has been implemented that allows to set the facecolor of the axes (i.e. the background color for the plot)
  • a new mask formatoption has been implemented that allows to mask the data based on a mask that can either be in the dataset or in a separate file (see #15)
  • the bounds and other ticks (e.g. xticks, yticks, cticks) formatoptions have gained multiple new values (all backwards-compatible, see #13):

    • they now support discrete logarithmic and symmetric bounds/ticks via bounds='log' and bounds='symlog'.

    • The bounds and other tick formatoptions ([xticks, cticks, yticks, etc.]{.title-ref}) now support a dictionary as a value, e.g.:

      plotter.update(bounds={'method': 'rounded', 'percmin': 5})
      
    • You can specify vmin and vmax for color bounds and ticks which prevents their automatic estimation, e.g. via:

      plotter.update(bounds={'method': 'rounded', 'vmin': 50, 'vmax': 75})
      # or
      plotter.update(bounds=['rounded', None, None, None, 50, 75])
      
Changed
  • values in the statusbar are only shown, if the drawn artist contains the cursor position, see #18
  • psy-simple now requires matplotlib greater or equal than 2.0
  • psy-simple has been moved from https://github.com/Chilipp/psy-simple to https://github.com/psyplot/psy-simple, see #7
  • The color handling of the [color]{.title-ref} formatoption has been changed to allow appending of new data. The [colors]{.title-ref} attribute can be extended by the [color_cycle]{.title-ref} using the [extended_colors]{.title-ref} attribute (see #10)
Fixed
  • Fixed a bug to calculate color bounds for uniform data, see #9
  • An issue has been fixed with the setting of colorbar ticks after updating the colorbar bounds (see #13)

Files

psyplot/psy-simple-v1.3.0.zip

Files (8.7 MB)

Name Size Download all
md5:9ba5d617a0817552083af02120b88928
8.7 MB Preview Download

Additional details

Related works