[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: opengl and images (was: Re: fltk backend fix & mouse wheel scroll fa
From: |
Shai Ayal |
Subject: |
Re: opengl and images (was: Re: fltk backend fix & mouse wheel scroll factor) |
Date: |
Mon, 5 Oct 2009 06:43:57 +0200 |
On Sun, Oct 4, 2009 at 11:01 PM, Søren Hauberg <address@hidden> wrote:
> lør, 03 10 2009 kl. 09:55 +0200, skrev Shai Ayal:
>> On Thu, Oct 1, 2009 at 9:21 PM, John W. Eaton <address@hidden> wrote:
>> > image (rand (8, 10, 3))
>> > set (gca, 'xlim', [2, 4])
>> >
>> > I would expect something like the first image attached below
>> > (generated with the gnuplot backend), but I get the second. Oddly,
>> > the axis is resized to fill the screen if the window is refreshed (by
>> > placing another window on top of it then uncovering it, for example).
>> > I'm not sure what the proper fix is. Any clues?
>>
>> I attach a changeset to fix these issues -- It clips the image
>> according to axes limits. It also fixes the limits of the image object
>> to take into account the real size of the image
>
> I tried the code in the repository, and it's nice to see images in FLTK
> (it's the only feature I really miss; I don't mind using gnuplot for
> printing). However, it seems plotting on top of images behave somewhat
> odd, in that the image appears on top of the plot. To see this, try
>
> imshow (rand (100, 100, 3))
> hold on, plot (1:100, 50*sin(linspace (0, 2*pi, 100))+50, "linewidth",
> 10), hold off
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?
Shai
>
> in both backends.
>
> Søren
>
>
- Re: fltk backend fix & mouse wheel scroll factor, Shai Ayal, 2009/10/01
- opengl and images (was: Re: fltk backend fix & mouse wheel scroll factor), John W. Eaton, 2009/10/01
- Re: opengl and images (was: Re: fltk backend fix & mouse wheel scroll factor), Søren Hauberg, 2009/10/04
- Re: opengl and images (was: Re: fltk backend fix & mouse wheel scroll factor),
Shai Ayal <=
- Re: opengl and images (was: Re: fltk backend fix & mouse wheel scroll factor), Søren Hauberg, 2009/10/05
- Re: opengl and images, Michael D Godfrey, 2009/10/05
- Re: opengl and images, Shai Ayal, 2009/10/05
- Re: opengl and images, Søren Hauberg, 2009/10/05
- Re: opengl and images, Michael Goffioul, 2009/10/05
- Re: opengl and images, Shai Ayal, 2009/10/05
- Re: opengl and images, Michael D. Godfrey, 2009/10/05
- Re: opengl and images, Shai Ayal, 2009/10/06
- Re: opengl and images, Søren Hauberg, 2009/10/06
- Re: opengl and images, Søren Hauberg, 2009/10/10