Skip to content

Automatic Unit Selection for Plot Scale #14

@Marek55S

Description

@Marek55S

Problem Statement

When displaying image data in plots (e.g., histograms, previews), the axis units (e.g., mm, μm, nm) should be automatically selected so that the axis values are easy to read and fall within a reasonable range. Currently, users must manually select units, which can lead to confusing or unreadable axis labels, especially for images with very large or very small dimensions.

Acceptance Criteria

  • Axis values are always displayed in a readable range.
  • The unit selection is automatic and does not require user input.
  • The selected unit is clearly indicated in axis labels and tooltips.
  • The function works for both width and height, and for images of any size.

Example

  • For an image width of 0.05 mm, the function selects μm and displays axis values as 50 μm.
  • For an image width of 120 mm, the function keeps mm and displays axis values as 120 mm.
  • For an image width of 0.0002 mm, the function selects nm and displays axis values as 200 nm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions