Mario Mech wrote: > ... > #------ > import numpy as np > from matplotlib import pyplot,mpl > > x = np.arange(10) > y = np.arange(25) > z = np.floor(10*np.random.random((25,10))) > > pyplot.contourf(x,y,z) > > cb = pyplot.colorbar() > > for j in cb.ax.get_yticklabels(): > print(j) > #---- > > results in: > > Text(0,0,'') > ...
I think you have to pyplot.show() or pyplot.savefig("deleteme.ps") in order to have the ticklabels populated. best, sebastian.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users