El día 18 de abril de 2012 07:59, questions anon <questions.a...@gmail.com> escribió: > I am not exactly sure how to use datetime objects instead of strings. > This is the code I am working with at the moment and the code works except > for the dates, they are just weird numbers along the x-axis.
Seems like you're plotting yearmonthlist in the x axis, which is a list of strings and each string is the concatenation of the string representations of two numbers. So numbers in the x axis are to be expected. You can create datetime objects this way: d = datetime.datetime(year, month, 1) Then create an array of datetime objects and use it as the x parameter to plot. Goyo ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users