> What I'm looking after is a "portable plotting widget" (Win, Linux,
> OSX), but can't find one for FLTK.
> 
> Nothing really advanced, just to be able to plot RAM and CPU usage of
> my box.

If you only want simple line graphs, it can be as simple as making a 
linked-list of (say) the last 100 measurements and then deriving your own 
drawing box (from Fl_Box) and in the draw() method of your widget, just plot 
the data.
Then use a Fl_Timer to gather a new sample every (how often?) and then trigger 
a redraw of the plot.

The challenge of figuring that lot out might make it worthwhile doing...

However, if you just want a basic plotting widget... I went to the FLTK site 
"links" page and typed "graph" in the search box; got a fair few hits (many of 
which don't look useful!)

Of those that do look useful, Roman Kantor's Cartesian widget 
(http://rfltk.svn.sourceforge.net/viewvc/rfltk/cartesian)

is a good choice, and there are many others, e.g. 
http://www.kiwacan.co.nz/fltk/index.html and so on...

See http://www.fltk.org/links.php and search from there, see what comes up, 
sure to find something that works for you!


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to