|
From: | Matt Flax |
Subject: | gtk+ iostream and gtkdatabox |
Date: | Thu, 05 Jul 2012 18:54:23 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
Hi again, I have integrated the concepts of gtkdatabox, gtk+ and iostream into a neat project ... http://www.flatmax.org/gtkiostream/index.html Apart from giving an extremely simple methodology for constructing GUIs, it enables you to do simple octave style plotting, however uses GtkDataBox to actually implement the plots. I am wondering whether perhaps this could be used to begin implementing ui type calls for building GUIs in Octave ? It works something like this : #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(); |
[Prev in Thread] | Current Thread | [Next in Thread] |