simdec-python icon indicating copy to clipboard operation
simdec-python copied to clipboard

X lim do not scale for new data

Open gnopik opened this issue 1 year ago • 3 comments

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 avatar May 22 '24 10:05 gnopik

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

gnopik avatar May 22 '24 10:05 gnopik

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.

tupui avatar May 22 '24 17:05 tupui

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

gnopik avatar Jun 03 '24 07:06 gnopik

Fix in https://github.com/Simulation-Decomposition/simdec-python/commit/80e977cfaf4c8e419129117708f397c21096d83e

tupui avatar Sep 02 '24 12:09 tupui