it also works for me for 1.2.0
In [1]: mat.__version__
Out[1]: '1.2.0'
In [2]: plot(np.arange(5),'ro')
Out[2]: []
In [3]: ax = gca()
In [4]: ax.set_xticklabels('abcdefghij')
Out[4]:
[,
,
,
,
,
,
,
,
]
In [5]: [t.get_text() for t in ax.get_xticklabels()]
Out[5]: ['a', 'b', 'c', 'd', 'e'
2013/3/14 Andrew H. Jaffe :
> Dear all,
>
> None of the obvious ways for changing ticklabels seem to work for the current
> version of Matplotlib (1.2.0 for me). At present,
> ax.yaxis.get_ticklabels().get_text() returns empty strings, as does
> ax.get_yticklabels(), and the equivalent set_* fun
Dear all,
None of the obvious ways for changing ticklabels seem to work for the current
version of Matplotlib (1.2.0 for me). At present,
ax.yaxis.get_ticklabels().get_text() returns empty strings, as does
ax.get_yticklabels(), and the equivalent set_* functions don't seem to have any
effect.
On Mon, Jul 21, 2008 at 4:54 AM, Wolfgang Kerzendorf
<[EMAIL PROTECTED]> wrote:
> Dear all,
>
> I find it incredibly hard to work with tick labels in matplotlib (on
> matplotlib 0.98 @ OS X 10.5.4) (It might well be that I haven't
> stumbled across the right solution yet and it is really easy ;-)
Dear all,
I find it incredibly hard to work with tick labels in matplotlib (on
matplotlib 0.98 @ OS X 10.5.4) (It might well be that I haven't
stumbled across the right solution yet and it is really easy ;-) ). I
want to first of all change the axis so it displays the normal number
as tic
Hi all,
I'm going crazy with ticklabels positions, I just want to update yticklabels
but nothing changes :
>tlist=gca().get_yticklabels()
>tlist[1].get_position()
Out [571]:(0.0, 1.0)
>tlist[1].set_position((0.0, 2.0))
>draw()
>tlist[1].get_position()
Out [574]:(0.0, 1.