Version 2.2¶
PlotPy Version 2.2.0 (2024-03-04)¶
In this release, test coverage is 75%.
New features:
Added
SIG_ITEM_PARAMETERS_CHANGEDsignal toBasePlotclass:This signal is emitted when the parameters of an item are changed using the parameters dialog, or a specific tool (e.g. the colormap selection tool, or the lock/unlock tool for image items)
This signal is emitted with the item as argument
It is often emitted before the
SIG_ITEMS_CHANGEDsignal, which is global to all items, but not necessarily. For example, when the colormap of an image is changed, theSIG_ITEM_PARAMETERS_CHANGEDsignal is emitted for the image item, but theSIG_ITEMS_CHANGEDsignal is not emitted.
Added new colormap presets:
viridis,plasma,inferno,magma,cividisafmhotcoolwarm,bwr,seismicgnuplot2,CMRmap,rainbow,turbo
Fixed all qualitative colormaps:
All qualitative colormaps have been re-computed because they are not supposed to be interpolated, which was the case and made them unusable
The qualitative colormaps are now usable and look like the ones from Matplotlib
Colormap manager:
Added a button to remove a custom colormap
The preset colormaps and the currently selected colormap are read-only
Added automatic unit tests for interactive tools:
AnnotatedCircleTool,AnnotatedEllipseTool,AnnotatedObliqueRectangleTool,AnnotatedPointTool,AnnotatedRectangleTool,AnnotatedSegmentToolAverageCrossSectionTool,CrossSectionTool,ObliqueCrossSectionTool,LineCrossSectionToolEditPointTool,SelectPointsTool,SelectPointToolAspectRatioTool,ImageStatsTool,SnapshotToolDisplayCoordsTool,RectZoomToolCircleTool,EllipseTool,FreeFormTool,MultiLineTool,ObliqueRectangleTool,PointTool,RectangleTool,SegmentTool
Internal package reorganization: moved icons to
plotpy/data/iconsfolder