v2.7.0
Version 2.7.0
Supported versions of Python have been updated (drop support for Python 3.8, add support for Python 3.13):
- PlotPy < 2.7.0: Python 3.8, 3.9, 3.10, 3.11 and 3.12
- PlotPy >= 2.7.0: Python 3.9, 3.10, 3.11, 3.12 and 3.13
Other dependencies have been updated:
- Updated versions to those available at the time of the release of the oldest supported Python version (3.9)
- Exception: Cython 3.0 is required for Python 3.13
💥 New features / Enhancements:
- Added
AnnotatedPolygonannotation to items - Added
make.annotated_polygonfunction toplotpy.buildermodule - Customization of annotation information:
- Added
info_callbackargument to all annotation class constructors - Added
set_info_callbackmethod to all annotation classes - The
info_callbackis a function that takes the annotation object and returns a string with the information to display - Default
info_callbackis redirected to theget_infosmethod of the annotation object (this makes the feature backward compatible)
- Added
🛠️ Bug fixes:
- Fixed
pydicomsupport: usedcmreadinstead ofread_fileto read DICOM files