Skip to content

Automatically Assign Curves with Different Value Ranges to Secondary Y-Axis #14728

Description

@RezaeiDoust

When FOPT and FOPR are plotted on the same plot, the second curve is currently added to the same Y-axis as the first curve. Since these vectors often have significantly different value ranges, one of the curves can become difficult to interpret.

It would be beneficial if the application automatically assigned a newly added curve to an unused secondary Y-axis when its value range differs substantially from the curves already displayed. For example, when plotting FOPT and FOPR together, FOPR should automatically be placed on the secondary Y-axis.

Suggested Behavior
- When a new curve is added to a plot, compare its value range with the ranges of the existing curves.
- If the range differs significantly, automatically assign the curve to an unused secondary Y-axis.
- If no additional axis is available, keep the current behavior.
- Users should still be able to manually move curves between axes.

Benefits
- Improves readability when combining cumulative and rate vectors.
- Reduces the need for manual axis configuration.
- Produces more meaningful plots by default, especially for commonly paired vectors such as FOPT/FOPR, WOPT/WOPR, WGPT/WGPR, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EnhancementAn addition that can be observed by the userPendingReleaseIssues is fixed and will be available in next release

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions