octave-maintainers
[Top][All Lists]
Advanced

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

Re: more graphics changes.


From: Søren Hauberg
Subject: Re: more graphics changes.
Date: Mon, 19 Mar 2007 19:36:24 +0100
User-agent: Thunderbird 1.5.0.10 (X11/20070307)

Daniel J Sebald skrev:
Søren Hauberg wrote:

*) The axis when showing images isn't correct. This was fixed in previous version after some discussions on the behaviour. I think you just have to flip the y-axis. The problem can be illustrated by the following code:

  im = zeros(50, 50);
  im(30,  5:15) = 1;
  im(25:35, 10) = 1;
  imshow(im)
  hold on; plot(10, 30, 'r*'); hold off

This should show a black image with a white cross. In the center of the white cross a red * should appear.

Give the attached patch a try. If "image" or its varieties has been called when axis hold is "off" then the ydir is reversed.
The coordinate system seems to be correct, but the image is now flipped upside down. Try to call "image" without any input arguments -- the baby will now be upside down.

Søren


reply via email to

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