v2.3.1
Version 2.3.1
In this release, test coverage is 79%.
💥 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,XCursorToolandHRangeTool) DisplayCoordsTool: simulation of 'Alt' and 'Ctrl' keys- Complete coverage for
MultiLineToolandFreeFormTool - Selection tools (
RectangularSelectionToolandSelectTool)
🛠️ 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_MOVEDsignal 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 (
AttributeErrorwhen
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_mapmethod takes a newinvertparameter (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_pathmethod was removed from the
RawImageItem.deserializemethod: this issue has to be handled by the host
application, not by the PlotPy library. ImageIOHandler: removedadd_change_pathandadapt_pathmethods
- When an image plot item is deserialized, and needs to be reloaded from a file,
- Fix typo in
tests.features.test_colormap_editormodule: renamed function
test_colormap_managertotest_colormap_editor - Removed unnecessary
BaseImageItem.get_color_map_namemethod