From: Uwe S. <uwe...@gm...> - 2005-05-16 22:58:59
|
Hi folks, forgive me as I am new to gnuplot-py, but how can I pass dates as x data to= the=20 gnuplot.data function? When I try something like ["2004-10-05",10] the module barfs and tells me that a float value is required. Any help would be greatly appreciated!=20 cheers, uwe=20 From within python:=20 >>> data=3D[["2005-01-01", 20], ["2005-01-20", 19]] >>> d=3DGnuplot.Data(data, with=3D'linespoints', using=3D'1:2') Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/Gnuplot/PlotItems.py", line 513, in Data set =3D utils.float_array(set[0]) File "/usr/lib/python2.3/site-packages/Gnuplot/utils.py", line 41, in float_array return Numeric.asarray(m, Numeric.Float) File "/usr/lib/python2.3/site-packages/Numeric/Numeric.py", line 134, in asarray return multiarray.array(a, typecode, copy=3D0, savespace=3Dsavespace) TypeError: a float is required |