|
From: Sebastian B. <web...@th...> - 2010-01-20 16:15:59
|
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.
|