I have a problem when using XYPlots ( xforms 0.88.1 on LINUX ) :
I use an FL_POINTS_XYPLOT, with fixed bounds both in X and Y.
At the initialisation, i fill the plot with out of bounds values ( in Y )
such that it looks empty.
Then every n seconds i read from an external device some data (
temperatures in this case ) and replace the point with X = the time of the
reading and Y = the temperature value. Such that my plot gets filled by
steps from left to right.
This is OK, but:
The Y bounds are say 0 to 100.
I want to plot points in BLACK if Y value is between 30 and 70, and in RED
otherwise.
I tried to do that by using my own symbol drawing function via
fl_set_xyplot_symbol: each time i read a new value, i change the color
in which i want to plot this point ( a global variable accessible to the
drawing function ), and then replace the point :
fl_replace_xyplot_point( object, index, time, temperature )
But this does not work because even with fixed bounds and with the
fl_replace_xyplot_point function, _ALL_ the points of the plot are
redrawn, not only the replaced one.
Is there a way to do what i want with Xforms as it is?
L.Guglielmi
-------------------------------------------------------------------------------
Laurent Guglielmi e-mail: Laurent.Guglielmi@cdf.in2p3.fr
Laboratoire de Physique Corpusculaire
et Cosmologie tel: (+33 1) 44.27.15.39
College de France fax: (+33 1) 43.54.69.89
11 pl. Marcelin Berthelot
75231 Paris Cedex 5
France
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/