Simulation-Decomposition / simdec-python

Sensitivity analysis using simulation decomposition
https://simdec.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 0 forks source link

X lim do not scale for new data #30

Open gnopik opened 1 month ago

gnopik commented 1 month ago

When new data is uploaded, X-axis limits remain from the previous case, which might cause awfully scaled graph (or even all data off the graph). That would be especially harsh for newcomers :( image

gnopik commented 1 month ago

can't it just check min and max values of the output and scale the graph accordingly when data is loaded first time?

tupui commented 1 month ago

The issue is with the way the sliders work. Sliders and all these UI elements are hard to make react to changing data. When it loads the first time, some code gets executed to give the values for the sliders. I need to see if I can re-initialize it when loading a new file.

gnopik commented 1 month ago

If automatic re-initialization is too hard to get, how about another button "Reset" there?