octave-maintainers
[Top][All Lists]
Advanced

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

Re: axis square


From: Ben Abbott
Subject: Re: axis square
Date: Mon, 09 Mar 2009 22:06:20 +0800


On Mar 9, 2009, at 5:56 PM, Marco Caliari wrote:

Dear maintainers,

the enclosed patch (against 3.1.54) makes "axis square" to behave in a compatible way and as described in the documentation. I also modified the demo, since "axis normal", "axis square", "axis equal" should appear after a plot command in order to take effect (this is also a compatible behaviour). Please consider to apply this patch.

Best regards,

Marco<axis.m.patch>

Marco,

If I understand correctly, the "square" and "equal" options need to be switched.

If you modify the demos so that the "plot(...)" commands precede the "axes(...)" and "title(...)" commands the problem should be clear.

Also, it appears to me that the "dataaspectratio" for "equal" ("square" in your diff) should be set as ...

    elseif  (strcmp (ax, "equal"))
      x = xlim;
      y = ylim;
      set (ca, "dataaspectratio", [(x(2)-x(1)), (y(2)-y(1)), 1]);

If you'll make these corrections and resubmit a diff/patch, I'll commit it for you.

Thanks
Ben



reply via email to

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