octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61532] "Automatic limits for current axis" bu


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #61532] "Automatic limits for current axis" button doesn't respect "axis tight"
Date: Tue, 23 Nov 2021 12:15:05 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #2, bug #61532 (project octave):

Indeed, I missed mentioning "axis tight" after the plot command :-)
Thanks for spotting that.

What I think should happen is s/th along these lines:
* The first time one of the zoom buttons is clicked after any other plot
command or button click, the current axis limits are saved somewhere. Then a
"tight" or "auto" setting wouldn't matter, just as Matlab does and as -I
think- an unwary user would expect;
* Upon (possibly repeatedly) zooming out or upon clicking the "Automatic
limits" button, the plot zooms out until the saved axis limits completely fill
the (sub)plot box; i.e., the original axis limits are restored.

* Any intermediate axis limits or view setting other than zooming
in/out/restore (e.g., axis auto / set (<handle>, xlim, [ ...]) / etc.) wipes
or resets the saved axis settings.

As to other properties requiring "stickyness", I currently have no idea except
tilting (rotating). Any 2D plot can be tilted (rotated), I can imagine that
after a lot of rotations a user loses track of up and down and wants to reset
the plot to the original view angle.
I'd hope that once a solution is found for xlim/ylim, "stickyness" for other
properties can be tackled in a similar fashion.

There's the old bug #44323 (also by me) about zooming in 3D plots, but for
that case I think zooming out (or maybe better: changing camera position)
beyond original axis limits could be quite useful for 3D plots.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61532>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]