Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DView stuck in auto-scale #35

Open
shorowit opened this issue Oct 23, 2017 · 1 comment
Open

DView stuck in auto-scale #35

shorowit opened this issue Oct 23, 2017 · 1 comment

Comments

@shorowit
Copy link
Collaborator

From Craig:

This version of DView seems to be stuck in ‘auto-scale.’

• Even though the program opens with ‘Autoscale’ unchecked, DView operates as though auto-scaling is on.

• If specific y-axis scale values are entered manually and ‘Autoscale’ is left unchecked , DView still operates as though auto-scaling is on.

For example -- in the attached file, first selecting ComEd2016 and then selecting ComEd2012, causes the y-axis scale max to increase from 3.4 to 4 – on either the upper or lower graph.

ComEd-SF-woEH-2012-2016-cc2.csv.txt

@jmarrec
Copy link
Contributor

jmarrec commented Apr 16, 2018

The guilty method is AutoscaleYAxisByPlot.

When adding a graph it's called from AddGraphAfterChannelSelection

The method itself forces update in each case in AutoscaleYAxis: https://github.com/NREL/wex/blob/develop/src/dview/dvtimeseriesctrl.cpp#L2569

The targeted behavior should be defined more clearly:

  • If I add a graph, I want to retain the Min/Max Y Axis values I entered
  • If I remove a graph, do I want it to calculate and update the Min/Max Y axis or retain my entered values?
    etc

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

No branches or pull requests

2 participants