From: Michael H. <mh...@al...> - 2005-05-04 06:00:12
|
BBands wrote: >I'd like to use the new xticlabels function. I have >tried this: > >pData = Gnuplot.Data(date, open, high, low, close, >using = '0:2:3:4:5:xticlabels(1)', with = >'financebars') > >but gnuplot.py wants date to be a float. > >Any thoughts? > > Gnuplot.py doesn't know how to output dates. And since it uses Numeric arrays to store data, it wouldn't be trivial to fix this for the general case. So you probably need to write your data to a temporary file yourself (using a date format that can be understood by gnuplot), then plot the data directly from the file. If you want to get fancier, then you can define a new PlotItem that knows how to output dates, then the whole Gnuplot.py infrastructure should simply work. There was just a discussion on this mailing list about plotting dates. See the archives. Michael |