+ def graphx11(self):
+ try:
+ import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils
+ except ImportError:
+ print "gnuplot-py is missing. Can't graph."
+ return;
+ g = Gnuplot.Gnuplot(debug=1);
+ g.clear();
+
+ g.title('Glitch Training Set');
+ g.xlabel('Time (16MHz)');
+ g.ylabel('VCC (DAC12)');
+
+ g('set datafile separator "|"');
+
+ g(script_timevcc);
+ print "^C to exit.";
+ while 1==1:
+ time.sleep(30);
+ # g('replot');
+
+
+ def graph(self):
+ #try:
+ import Gnuplot, Gnuplot.PlotItems, Gnuplot.funcutils
+ #except ImportError:
+ # print "py-gnuplot or py-numpy is missing. Can't graph."
+ # return;
+ g = Gnuplot.Gnuplot(debug=1);
+
+ g('\nset term png');
+ g.title('Glitch Training Set');
+ g.xlabel('Time (16MHz)');
+ g.ylabel('VCC (DAC12)');
+
+ g('set datafile separator "|"');
+ g('set term png');
+ g('set output "timevcc.png"');
+ g(script_timevcc);
+