|
From: John H. <jdh...@ac...> - 2005-05-16 16:58:22
|
>>>>> "Florian" == Florian Lindner <mai...@xg...> writes:
Florian> So all data lists and the ticklabels lists are of equal
Florian> length.
Florian> But the generated graph only shows the first 8 elements
Florian> of the tick labels (from "Jan 04" to "Aug 04"). The data
Florian> is completely shown. Only ticklabels are missing.
Florian> What is wrong there?
It is not important that the datalists and tick labels are equal
length. What matters is for the tick locations and tick labels to be
equal length. You also need to call ax.set_xticks in addition to
ax.set_xticklabels.
But since you are working with dates, I think you'll have better luck
setting a custom tick locator and formatter, as described in
http:/matplotlib.sf.net/matplotlib.ticker.html,
http:/matplotlib.sf.net/matplotlib.dates.html, and
http:/matplotlib.sf.net/examples/date_demo1.py,
http:/matplotlib.sf.net/examples/date_demo2.py and chapter 5 the users
guide.
Florian> Thanks,
Florian> Florian
Florian> -------------------------------------------------------
Florian> This SF.Net email is sponsored by Oracle Space
Florian> Sweepstakes Want to be the first software developer in
Florian> space? Enter now for the Oracle Space Sweepstakes!
Florian> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
Florian> _______________________________________________
Florian> Matplotlib-users mailing list
Florian> Mat...@li...
Florian> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|