From: Mathieu A. <mat...@gm...> - 2008-08-28 11:38:39
|
2008/8/28 Guilhem Bonnefille <gui...@gm...> > IMHO, in order to have this property dialog resizable, I think we have > to make the graphs resizable. I started to look at creating *graph* > widget, but seems to take more time than I have currently. At the same > time, it seems quite easy to do[1]. Having graphs as separated widget > will certainly allow us to implement dynamic sizing (implementing > methods _size_request, _size_allocate, _realize, _expose), instead of > the current static sizing. Maybe we can use the glinegraph widget http://sourceforge.net/project/showfiles.php?group_id=157888&package_id=191712 or use it as a basis to make our own. " A Gtk2/GLib2/cario GUI application which demonstrates the use of GTK+ for producing xy line graphs. This widget once created allows you to add one or more data series, then add values to those series for ploting. The X point is assumed based on arrival order. However, the Y value or position is based one the current scale and the y value itself. If the charts x scale maximum is 40, or 40 points, the 41+ value is appended to the 40th position after all points are shifted left and out through pos 0. Packaged as a gtk widget for ease of use. " There is a very interesting sample demo in the archive. Mathieu |