|
From: Travis B. <td...@fa...> - 2005-05-16 17:51:35
|
Date ticking was a hassle for me to get used to, but I think the examples John pasted below and this will get you through: http://matplotlib.sourceforge.net/screenshots/finance_work2.py Travis On Mon, 16 May 2005 11:57:49 -0500, "John Hunter" <jdh...@ac...> said: > >>>>> "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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Travis Brady td...@fa... |