octave-maintainers
[Top][All Lists]
Advanced

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

Re: more graphics changes.


From: Quentin Spencer
Subject: Re: more graphics changes.
Date: Mon, 19 Mar 2007 14:17:32 -0500
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

Søren Hauberg wrote:
Daniel J Sebald skrev:
Søren Hauberg wrote:
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.

Comes out right-side-up here. Make sure the patch worked correctly (sounds like __img__.m may not have "reverse" conditional in it). I haven't been fully retaining the directory structure in the patches and the two files are in different directories.
I just updated my gnuplot installation to recent cvs and your patch works now.


I haven't been following this discussion closely, but since gnuplot 4.2 was recently released I thought I'd point out that we should probably be testing against that rather than CVS. Given the frequency of past gnuplot releases, anything in gnuplot CVS won't likely be in a released version in the next two years, and I would expect over the next few months gnuplot 4.2 should find its way into all of the distributions.

Quentin



reply via email to

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