From: stuartornum <st...@mu...> - 2008-08-27 14:14:28
|
Hi, I would like to be able to plot dates along the X axis' with values up the Y. However Im having problems with the correct format in order to pass to plot_date(). This is what I have so far: (example) #################################### List = [ [datetime.datetime(2008, 7, 12, 5, 12)], ['46.8'] ] plot_date(List[0], List[1]) ##################################### Returns error: c = numeric.array(data, dtype=tc, copy=True, order=order) ValueError: setting an array element with a sequence. ##################################### I have looked at the pylab example for plot_date, however it uses a drange() to figure out the dates and doesn't show me how to do it one by one. Thank you for your time. -- View this message in context: http://www.nabble.com/plot_date%28%29---Correct-format-to-plot-tp19181899p19181899.html Sent from the matplotlib - users mailing list archive at Nabble.com. |