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

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

[Octave-bug-tracker] [bug #30509] 'imshow' doesn't reverse 'ydir' of axi


From: Rik
Subject: [Octave-bug-tracker] [bug #30509] 'imshow' doesn't reverse 'ydir' of axis
Date: Fri, 23 Jul 2010 00:44:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/9.10 (karmic) Firefox/3.6.6

Follow-up Comment #4, bug #30509 (project octave):

I think we're getting closer to understanding, and hence finding a solution.

Currently, this sequence doesn't work with Matlab
plot;
hold on
imshow

When you do the reverse
imshow('arrow_up.jpg');
hold on;
plot(1:100,'c');

does Matlab
1) produce the line correctly from the lower left to the upper right?  With
'ydir' reversed I believe the line will also be incorrectly reversed and
travels from the upper left to lower right.

2) Assuming Matlab correctly plots part (1), does it do so by creating two
axes for the current plot?
children = get(gcf, "children");
get(children, "type")

which might return
ans =

{
  [1,1] = axes
  [2,1] = axes
}

3) If there is only one axis in part (2), and ydir is reversed, has Matlab
reversed the ydata manually?

handles = get(gca);
get(handles, 'ydata')

which I would expect to be 100:-1:1.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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