failure in reversed xdir or ydir axes

Ben Abbott bpabbott at mac.com
Thu Jul 2 08:36:56 CDT 2009


On Thursday, July 02, 2009, at 08:57AM, "Eric Chassande-Mottin" <echassandemottin at gmail.com> wrote:
>> set(axes,"ydir","reverse");
>>
>> As I understand it, the "axes" call creates a new axes object and
>> inserts it into the current figure, "set" then sets the attribute,
>> which works, but you now have two axes in the figure, but only one of
>> them with ydir reversed. That's what I see.
>
>that makes sense. I thought that axes was returning an handle
>to the current axes.
>
>sorry for the false alarm, eric.
>

Jaroslav, you are correct. I compared 3.0.5, and 3.2.0 to Matlab 2007b (I'm still able to run the released versions). All gave the same result. 

Eric to get what you had expected, try ...

    set (gca, "ydir", "reverse")

Ben



More information about the Bug-octave mailing list