Hi there
I have some problem with accessing ticklabels in a script (see
attachment). The output of the script looks pretty strange to me:
<a list of 1 Text ticklabel objects>
<a list of 7 Text ticklabel objects>
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 would like to access the labels before the final show command in a
script. But how is this possible with this behavior?
Best regards
Eugen
--
--------------------------------------------
| |
| Dipl. Ing. Eugen Wintersberger |
| Department of semicondutor physics |
| University of Linz |
| Altenbergerstrasse 69 |
| A-4040 Linz |
| Austria |
| |
| Mobile.: +43 664 3112861 |
| Tel.: +43 732 2468 9605 |
| E-Mail.: [EMAIL PROTECTED] |
| Skype: eugen20056221 |
| ICQ: 214418739, nickname: thot |
| |
--------------------------------------------
from matplotlib import pylab
pylab.ioff();
f = pylab.figure(1);
pylab.plot([1,2,3,4,5,6,7]);
a = pylab.gca();
l = a.xaxis.get_ticklabels();
print l
pylab.show();
l = a.xaxis.get_ticklabels();
print l
-------------------------------------------------------------------------
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