[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Zoom GUI in fltk backend
From: |
Søren Hauberg |
Subject: |
Re: Zoom GUI in fltk backend |
Date: |
Tue, 30 Jun 2009 07:15:08 +0200 |
tir, 30 06 2009 kl. 06:43 +0300, skrev Shai Ayal:
> On Tue, Jun 30, 2009 at 12:16 AM, Soren Hauberg<address@hidden> wrote:
> > Anyway, I'm attaching a patch in case anybody wants to try this out. I
> > had to hardcode the upper and lower bounds for the plot because I
> > couldn't figure out how to extract this information from the axes. So,
> > if you want to play with this, make sure that
> >
> > min (x) = 0 and max (x) = 10
> I haven't tried it yet, but just looking at the patch, you have:
> Matrix xlim = ap.get_xlim ().matrix_value ();
> Matrix ylim = ap.get_ylim ().matrix_value ();
>
> don't these give you the limits (i.e. minx=xlim(0)<xlim(1) ? xlim(0) :
> xlim(1);)
No. When you zoom you change the values of 'xlim' and 'ylim', whereas
'min[x|y]' and 'max[x|y]' should be the extremas of the data. These are
used to ensure that you don't zoom too far a way.
Soren
- Zoom GUI in fltk backend, Søren Hauberg, 2009/06/29
- Re: Zoom GUI in fltk backend, John Swensen, 2009/06/29
- Re: Zoom GUI in fltk backend, Shai Ayal, 2009/06/29
- Re: Zoom GUI in fltk backend,
Søren Hauberg <=
- Re: Zoom GUI in fltk backend, Shai Ayal, 2009/06/30
- Re: Zoom GUI in fltk backend, Michael Goffioul, 2009/06/30
- Re: Zoom GUI in fltk backend, Søren Hauberg, 2009/06/30
- Re: Zoom GUI in fltk backend, Shai Ayal, 2009/06/30
- Re: Zoom GUI in fltk backend, Søren Hauberg, 2009/06/30
Re: Zoom GUI in fltk backend, John Swensen, 2009/06/30