v2.3.0
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 newinvert
parameter (which
defaults toNone
, 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)
- The user can now invert the colormap of an image item:
🛠️ 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
: removedadd_change_path
andadapt_path
methods
- When an image plot item is deserialized, and needs to be reloaded from a file,
- Fix typo in
tests.features.test_colormap_editor
module: renamed function
test_colormap_manager
totest_colormap_editor
- Removed unnecessary
BaseImageItem.get_color_map_name
method