Skip to content

v2.8.3

Latest

Choose a tag to compare

@PierreRaybaut PierreRaybaut released this 18 Dec 09:42

PlotPy Version 2.8.3

💥 New features:

  • AnnotatedSegment new angle display:
    • Added angle display in annotation label, showing the segment's angle relative to the horizontal direction (0° to 180°)
    • This implements the equivalent feature submitted in Pull Request #51 by user @deuterium33

🛠️ Bug fixes:

  • Fixed IndexError when displaying images with a single row or column (e.g., SIF files with shape (1, N)):
    • The to_bins() function now handles single-element coordinate arrays by assuming a bin width of 1.0 centered on the point
    • Previously, loading such images in DataLab caused an IndexError: index 1 is out of bounds for axis 0 with size 1
  • Fixed circle/ellipse shape drawing with non-uniform aspect ratios:
    • Axes were not perpendicular and did not connect to the ellipse edge when plot aspect ratio differed from 1.0
    • Now uses parametric ellipse drawing that correctly handles non-perpendicular axes in pixel space
    • The ellipse properly passes through all four handle points regardless of aspect ratio or rotation
  • Fixed angle display range for AnnotatedObliqueRectangle and AnnotatedEllipse:
    • Angle is now displayed in the 0° to 180° range instead of -90° to 90° (the original implementation was also displaying 0° at vertical orientation -additionally to horizontal orientation- which was counter-intuitive)
    • This provides a more intuitive and consistent angle representation