Version 2.3.2
In this release, test coverage is 79%.
Version 2.3.2 fixes a blocking issue with the colormap editor unit test introduced
in version 2.3.1. The latter is a fugitive release that was not announced.
💥 New features / Enhancements:
- Colormap: added "Apply" button to the colormap manager
- Automated test suite:
- Test coverage has been improved from 75% to 79%
- The following features are now covered by unit tests:
- Panning with the mouse move events
- Zooming with the mouse wheel/move events
- Curve statistics tool
- Image rotation and translations via
SelectTool
(simulating mouse events) - Masked areas in images and
ImageMaskTool
LockTrImageTool
- Cursor tools (
HCursorTool
,VCursorTool
,XCursorTool
andHRangeTool
) DisplayCoordsTool
: simulation of 'Alt' and 'Ctrl' keys- Complete coverage for
MultiLineTool
andFreeFormTool
- Selection tools (
RectangularSelectionTool
andSelectTool
)
🛠️ Bug fixes:
- Image statistics tool: fixed "No available data" message when the tool rectangular
region top Y coordinate is above the image top Y coordinate - Label items (
LabelItem
,LegendBoxItem
,DataInfoLabel
, ...) were not emitting
theSIG_ITEM_MOVED
signal when moved interactively (with the mouse) if the item
anchor was attached to the canvas - Colormap: fixed context menu entry update (colormap icon was updated as expected, but
the colormap name was not) - Rotate/crop dialog: added missing toolbar on plot widget
- Flip/rotate dialog: added missing toolbar on plot widget
- Fixed issue with oblique averaged cross section computation (
AttributeError
when
clicking on the empty cross section plot)
Version 2.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