Chris-N-K / napari-time-series-plotter

A napari Plugin for visualisaton of pixel values over time (t+ nD) as graphs.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Freeze range in Y-axis #33

Closed aloboa closed 2 months ago

aloboa commented 2 months ago

Even if set manually, the Y-axis range automatically resets if the cursor is moved, which makes it very difficult to compare z- profiles among pixels. Could you add an option to freeze the y-axis range?

Chris-N-K commented 2 months ago

Sadly I did not find a way to keep the axis parameters set through the matplotlib interface yet, but there is the option to set the Y range in the options tab.

That should work, if not it's a bug and I have to take a look.

aloboa commented 2 months ago

Please see here some comments on this issue and https://github.com/Chris-N-K/napari-time-series-plotter/issues/31#issuecomment-2189520129

https://github.com/Chris-N-K/napari-time-series-plotter/assets/6074054/780e666e-b0e6-45f7-a71e-99627c9bf9f6

aloboa commented 2 months ago

I would say that the fact that setting the range of y-axis for one pikel z-plot does not keep fixed for the next plots is a bug. Note that the plot scale changes from pixel to pixel even if "Options/Auto scale plot axes" is not ticked.

Chris-N-K commented 2 months ago

Hi, I will check everything this afternoon, sorry for the wait. From the video you showed it looks to me as if you used the matplotlib interface. That sadly doesn't persist, like I wrote above. I will add a video showing the options tab with the Y-range fix.

aloboa commented 2 months ago

I have just realized the x_min, x_max, y_min, y_max fields in Options, I apologize.

Chris-N-K commented 2 months ago

No worries, the current implementation is far from perfect @aloboa Glad it works for you now.