Re: gtkdatabox-list Digest, Vol 5, Issue 4
- From: naveen <naveen galieosoft com>
- To: gtkdatabox <gtkdatabox-list gnome org>
- Subject: Re: gtkdatabox-list Digest, Vol 5, Issue 4
- Date: Sat, 17 Feb 2007 09:11:17 +0530
sir,
Yes it is very difficult to find out dy if we have more than one
plot but i think dx can be calculated what ever the number of plots.
Thanks and Regards.
Naveen.
On Wed, 2007-02-14 at 22:30, gtkdatabox-list-request gnome org wrote:
> Send gtkdatabox-list mailing list submissions to
> gtkdatabox-list gnome org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.gnome.org/mailman/listinfo/gtkdatabox-list
> or, via email, send a message with subject or body 'help' to
> gtkdatabox-list-request gnome org
>
> You can reach the person managing the list at
> gtkdatabox-list-owner gnome org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gtkdatabox-list digest..."
>
>
> Today's Topics:
>
> 1. Re: clickedx (naveen)
> 2. clickedx (naveen)
> 3. Re: clickedx (Roland Bock)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Feb 2007 10:42:33 +0530
> From: naveen <naveen galieosoft com>
> Subject: Re: clickedx
> To: gtkdatabox <gtkdatabox-list gnome org>
> Message-ID: <1171429953 6507 25 camel localhost localdomain>
> Content-Type: text/plain
>
> Hi sir,
>
> Thanks for the reply....
>
> I am trying to solve my problem using "singals" example.
>
> 1)Using button_press_cb() we are printing x and y values according to
> scale ex: 206.107 and 35.4237.
>
> 2)by using coord.x and coord.y we are getting pixels value
> ex: 65 and 100.
>
> 3)But what i need is the value(or nearest) in terms of the POINTS that
> we used to plot the sine waves..
> ex :X[xvalue]=206.107;
> ie xvalue= 206;because X[206]=206; and X[207]=207;
> The i value which we used to calculate sine and cos waves in the for
> loop.
>
> 4)I need the value only for X and not for Y..
>
> I think the way i communicated to you is not explained the problem i
> faced. But now it is clear i feel... please give me some idea..
>
> Regards,
> Naveen.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Feb 2007 12:54:36 +0530
> From: naveen <naveen galieosoft com>
> Subject: clickedx
> To: gtkdatabox <gtkdatabox-list gnome org>
> Message-ID: <1171437876 6507 32 camel localhost localdomain>
> Content-Type: text/plain
>
> Sir,
>
> Please excuse me ... as i converted the X values , i should be able to
> find the location in the array ...
> for (i=;i<50;i++)
> X[i]=i*0.5;
>
> for reconversion
>
> i have to do some thing like ..
>
> i=X[i]/0.5;
>
> I am very sorry sir..
>
> Thanks and Regards
> Naveen
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 14 Feb 2007 08:39:28 +0100
> From: Roland Bock <box2OO6 eudoxos de>
> Subject: Re: clickedx
> To: gtkdatabox <gtkdatabox-list gnome org>
> Message-ID: <45D2BCB0 5040100 eudoxos de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Naveen,
>
> ok, so you want to determine the index of the data point closest to the
> user's click, right? I am afraid you have to figure out that one for
> yourself :-)
>
> I do not consider that a part of GtkDatabox's functionality, especially
> since there would be quite a lot of options, like
>
> *) If there are several graphs, which one is to be considered?
>
> *) Are we looking for the sqrt(dx*dx + dy*dy) to be minimized? Or is
> only |dx| relevant? Or maybe only |dy|? You seem to be interested only
> in dx, but others would certainly want to consider dy, too.
>
> *) If the user has zoomed in, do you want to consider only those data
> points which are visible? Maybe the closest is outside the visible area.
>
> *) If the shape of the graph elements is other than circles, do you want
> to use the distance to the "real" data values or do you want to consider
> the distance to the nearest edge of such shapes?
>
> These are just the first few things coming into my head.
>
>
>
> If you know exactly what you need, determining the "closest" data point
> should be easy for you to do.
>
>
> Regards,
>
> Roland
>
> naveen wrote:
> > Hi sir,
> >
> > Thanks for the reply....
> >
> > I am trying to solve my problem using "singals" example.
> >
> > 1)Using button_press_cb() we are printing x and y values according to
> > scale ex: 206.107 and 35.4237.
> >
> > 2)by using coord.x and coord.y we are getting pixels value
> > ex: 65 and 100.
> >
> > 3)But what i need is the value(or nearest) in terms of the POINTS that
> > we used to plot the sine waves..
> > ex :X[xvalue]=206.107;
> > ie xvalue= 206;because X[206]=206; and X[207]=207;
> > The i value which we used to calculate sine and cos waves in the for
> > loop.
> >
> > 4)I need the value only for X and not for Y..
> >
> > I think the way i communicated to you is not explained the problem i
> > faced. But now it is clear i feel... please give me some idea..
> >
> > Regards,
> > Naveen.
> >
> > _______________________________________________
> > gtkdatabox-list mailing list
> > gtkdatabox-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkdatabox-list
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> gtkdatabox-list mailing list
> gtkdatabox-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkdatabox-list
>
>
> End of gtkdatabox-list Digest, Vol 5, Issue 4
> *********************************************
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]