Skip to content

v2.3.0

Compare
Choose a tag to compare
@PierreRaybaut PierreRaybaut released this 11 Mar 08:50
· 248 commits to master since this release

In this release, test coverage is 75%.

💥 New features:

  • Added support for colormap inversion:
    • The user can now invert the colormap of an image item:
      • From the image parameters dialog ("Invert colormap" checkbox)
      • From the plot context menu (right-click on the image item)
    • BaseImageItem.set_color_map method takes a new invert parameter (which
      defaults to None, meaning that the behavior is unchanged)
    • New ReverseColormapTool: registered by default in the plot widget, like the
      ColormapTool (add the "Invert colormap" entry in the context menu of the image)

🛠️ Bug fixes:

  • ErrorBarCurveItem: fixed NumPy deprecation warning
    ("Conversion of an array with ndim > 0 to a scalar is deprecated [...]")

ℹ️ Other changes:

  • Image plot items deserialization:
    • When an image plot item is deserialized, and needs to be reloaded from a file,
      the file path is adapted to the current working directory if file is not found
      (this is the legacy behavior).
    • An unnecessary call to ImageIOHandler.adapt_path method was removed from the
      RawImageItem.deserialize method: this issue has to be handled by the host
      application, not by the PlotPy library.
    • ImageIOHandler: removed add_change_path and adapt_path methods
  • Fix typo in tests.features.test_colormap_editor module: renamed function
    test_colormap_manager to test_colormap_editor
  • Removed unnecessary BaseImageItem.get_color_map_name method