35 #include <gtkextra/gtkplot.h>
36 #include <gtkextra/gtkplotdata.h>
37 #include <gtkextra/gtkplotcanvas.h>
38 #include <gtkextra/gtkplotcanvasplot.h>
39 #include <gtkextra/gtkplotcanvastext.h>
42 #include <boost/numeric/ublas/matrix.hpp>
43 #include <boost/numeric/ublas/vector.hpp>
44 namespace ublas = boost::numeric::ublas;
51 GtkWidget *current_plot;
54 GtkWidget *vbox_container;
55 GtkPlotCanvasChild *lines;
58 GtkPlotData **datasets;
61 std::vector<std::string> labels;
63 int num_display_samples;
70 int num_plotted_channels;
81 double window_width, window_height;
89 GtkWidget *newLayer(GtkWidget *canvas);
92 static gint timedRedraw(gpointer);
93 gint redraw_timeout_id;
99 operator GtkWidget*();
104 void plot(ublas::matrix<double>);
115 void setLabels(std::vector<std::string> labels);
121 void setBGColor(
int red,
int green,
int blue) { BG_RED = red; BG_GREEN = green; BG_BLUE = blue; }