"Real-time" charting



I would like to use gtkdatabox for some sort of "real time" charting of dots. The idea consists in using a GArray that can grow in size with g_array_append_val or the function g_array_append_vals.

The workflow would be simple by adding a "push_xy" method to GtkDataboxGraph (or maybe their children):

- adds a value to two GArray's (one for X-vals other for Y-vals).
- redraw the GtkDataboxGraph.
- send a signal to the GtkDatabox to be redrawn.

Could this be possible? Of course i'm skipping some checks but should be simple enought to code provided the major (maybe not?) chage is made to use GArray of gfloat (gdouble) instead of plain gfloat array.

cya!

Samsagax


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]