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

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

[Octave-bug-tracker] [bug #49038] "axis equal" should not change aspect


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #49038] "axis equal" should not change aspect ratio of axes
Date: Fri, 9 Sep 2016 16:31:09 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0

Follow-up Comment #1, bug #49038 (project octave):

Attached the changeset.

Matlab also seems to ignore if "x/y/zlimsmode" is set to "manual" to be able
to keep the aspect ratio of the axes:

>> hax = axes ();
>> image (rand (3, 10));
>> get (hax, 'xlimmode')
ans =
manual
>> get (hax, 'xlim')
ans =
    0.5000   10.5000
>> get (hax, 'ylimmode')
ans =
manual
>> get (hax, 'ylim')
ans =
    0.5000    3.5000
>> get (hax, 'DataAspectRatioMode')
ans =
auto
>> get (hax, 'DataAspectRatio')
ans =
    5.0000    1.5000    1.0000
>> get (hax, 'PlotBoxAspectRatioMode')
ans =
auto
>> get (hax, 'PlotBoxAspectRatio')
ans =
    1.0000    0.7903    0.7903
>> axis equal
>> get (hax, 'xlimmode')
ans =
manual
>> get (hax, 'xlim')
ans =
    0.5000   10.5000
>> get (hax, 'ylimmode')
ans =
auto
>> get (hax, 'ylim')
ans =
   -1.9435    5.9435
>> get (hax, 'DataAspectRatioMode')
ans =
manual
>> get (hax, 'DataAspectRatio')
ans =
     1     1     1
>> get (hax, 'PlotBoxAspectRatioMode')
ans =
manual
>> get (hax, 'PlotBoxAspectRatio')
ans =
  434.0000  342.3000  228.2000



(file #38460)
    _______________________________________________________

Additional Item Attachment:

File name: bug49038_axis_equal.patch      Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49038>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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