From: Geoff L. <gl...@cm...> - 2004-11-18 09:45:09
|
Hi Has anyone got plotting of time data working properly? I am trying to plot the following: toplot = [(time.mktime(x.DateGenerated), x.MemoryPercUsed, x.SwapPercUsed) for x in self.Resources] g = Gnuplot.Gnuplot() g.title('Resource Usage for carbon') g.xlabel('Date') g.ylabel('Resource Used') # g('set timefmt "%s"') # g('set xdata time') g('set data style linespoints') g.plot(toplot) and get gnuplot> plot '/tmp/tmp-8L_Ak' notitle ^ line 0: Need full using spec for x time data if the lines are uncommented. If anyone has some suggestions that would be excellent. Thanks Geoff |