Skip to content

MicPy 0.4.1 Changelog

This minor release focuses on improving the usability and clarity of field visualizations.

Improved physical scaling in Field.plot()

  • Plots now correctly reflect the physical dimensions of the data instead of displaying raw cell indices.
  • The spacing stored in the underlying NumPy array is used to compute axis scaling.
  • By default, plots are shown in micrometers (µm).
  • A new length_unit parameter allows easy unit customization (e.g., "mm", "cm", "m").

Built-in scalebar for plots

  • Added a scalebar to Field.plot() for better visual interpretation of sizes.
  • Enabled by default and positioned in the lower right corner.
  • Automatically selects clean, human-friendly lengths (e.g., 1, 2, 5 × 10ⁿ).
  • Default width is 20% of the plot, with options available for customization.
  • Can be disabled via scalebar=False.

These changes aim to make MicPy plots more intuitive and publication-ready with minimal effort.