octave-maintainers
[Top][All Lists]
Advanced

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

Re: opengl and images


From: Michael D Godfrey
Subject: Re: opengl and images
Date: Sun, 04 Oct 2009 23:15:28 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4

On 10/04/2009 10:48 PM, Soren Hauberg wrote:
man, 05 10 2009 kl. 06:43 +0200, skrev Shai Ayal:
>  The image is drawn at z=0, so to see the plot, you should plot the
>  libe aboce the z-plane:
>    hold on, plot3 (1:100, 50*sin(linspace (0, 2*pi,
>  100))+50,ones(1,100), "linewidth",10), hold off, view(2)
>  Is this not the expected behavior?
When I do this, I get the attached image. I would have expected to see
the sine curve on top of the image. This happens both with and without
the call to 'view'.

So, no, this is not the expected behaviour. Images should always be
shown below other graphics objects. This is really handy, when doing
image processing as it allows you to easily plot positions of objects on
top of the image.

Soren

Well, here is what I get using current development system and Fedora FC11_x86_64. Attached. Curve is on top.

I used:
backend("fltk")
imshow (rand (100, 100, 3))
hold on
plot3 (1:100, 50*sin(linspace (0, 2*pi,100))+50,ones(1,100),"linewidth",10)
hold off
view(2)

Attachment: im_test.png
Description: PNG image


reply via email to

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