[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 09:30:10 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<https://savannah.gnu.org/bugs/?61532>
Summary: "Automatic limits for current axis" button doesn't
respect "axis tight"
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Tue 23 Nov 2021 03:30:08 PM CET
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Philip Nienhuis
Originator Email:
Open/Closed: Open
Release: 7.0.90
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
(Admittedly merely cosmetic, but for complicated plots and esp. maps (mapping
package) I find Octave's behavior quite annoying)
Steps to reproduce:
Type:
xm = 7; plot (-xm:xm, sin (-xm:xm))
==> Plot shows up
Zoom in somewhere in the plot (isn't even required)
Click "Automatic limits for current axis" button
==> Plot again has "loose" limits.
Same for Octave-5.2.0, so this is an old issue.
Matlab (I tested with r2014a & r2020b) does this "right", or maybe better: "as
expected":
r2014a seems to have no "Automatic limits" button, but the "Zoom out" button,
clicked often enough, in the end produces the original plot with tight axis
limits.
r2020b's "Restore original view" does likewise.
Along the way, noted another incompatibility:
Octave allows zooming out much further than the original axis limits and
behaves quite unpredictably at that. Sometimes (when clicking the zoom out
button repeatedly) it suddenly zooms back in to original (loose) view,
sometimes it zooms out two or three times and only then suddenly zooms back in
to original (loose) view.
Matlab consistently zooms out until the original plot size is restored, tight
or loose.
I had a look in axis.m, I think the relevant code there looks quite involved.
Maybe easier fixed using hidden properties for original axis limits settings?
("original" meaning "before zooming in")
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61532>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61532] "Automatic limits for current axis" button doesn't respect "axis tight",
Philip Nienhuis <=