axis square
Ben Abbott
bpabbott at mac.com
Mon Mar 9 09:06:20 CDT 2009
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
More information about the Octave-maintainers
mailing list