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: Wed, 26 Jan 2022 14:29:45 -0500 (EST)

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

Hmm, AFAIK "plotboxaspectratio" nor "dataaspectratio" aren't used anywhere
(that is, explicitly) in the (mapping package) scripts used to create the
figure. All that happens in the custom script invoking those functions is
plotting polygons and markers plus "axis tight", "grid on" and "box on". But
I'll have a look just to be sure.
And of course I can set those properties to "auto" (?) and then see what
happens in my custom scripts. I'll let you know.

As regards the example code you supplied: when zooming in Matlab changes the
aspect ratio property (BTW thanks for the adequate name, I didn't know about
it nor the property) but not the actual plot box itself; e.g., when zooming in
to a very narrow / high rectangle across the plotted line, the
plotboxaspectratio changes (yet X/Y ratio remains constant):

% original figure
>> get (gca, 'plotboxaspectratio')
ans =
     2     1     1
>> get (gca, 'dataaspectratio')
ans =
     1     1     1

% after zooming into narrow high rectangle
>> get (gca, 'plotboxaspectratio')
ans =
    7.8232    3.9116    1.0000
>> get (gca, 'dataaspectratio')
ans =
     1     1     1
>> 


and the size of the plotbox (shape of the plotted area between the axes)
remains a wide rectangle.
Also, Matlab refuses to zoom out further than the original figure, unlike
Octave that seems to offer zooming out until infinity.
After "axis tight" and then zooming into a narrow wide rectangle, the plotbox
aspectratio also remains the same as for the "axis tight" plotbox.


    _______________________________________________________

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]