Eugen Wintersberger <[EMAIL PROTECTED]> writes: > The first line is the printing of the ticklabel list before the > pylab.show() command. The second after pylab.show(). Why the list > contains 1 entry before and 7 (as is should) after pylab.show()?
I think matplotlib is deferring the creation of the tick labels because for all it knows, you might be going to plot something that will cause the axes to be rescaled and change the tick locations and labels. > I would like to access the labels before the final show command in a > script. But how is this possible with this behavior? You could set the tick positions and labels explicitly, or if you like the default tick locator, add the following before getting the ticklabel objects: a.xaxis.get_major_locator().refresh() -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users