GtkDataBox & GTK+ IOStream



HI there,

I have released some of my code which has been developed since as early as 1998.
It is available here : http://www.flatmax.org/gtkiostream/

The reason why I am writing to the list is that it has a very simplistic approach for using GtkDatabox.
It uses the same approach as Octave (www.octave.org) - it makes it very easy to construct plots.

For example like so :

#include <Plot.H>

vector <gfloat> x; // ordinate data
vector <gfloat> y; // co-ordinate data

Plot figure; // create a plotting figure

figure.semilogx(&x[0],&y[0], x.size()); // plot x and y data you can use 'plot' instead of semilogx

figure.hold(true); // hold the data

figure.semilogx(&xx[0],&yy[0]); // plot xx and yy data on the same plot.

figure.grid(true);

figure.hold(false); // next plot will clear - or you can use plot.clf();

Matt


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