Your problem is here:
setp(a.get_yticklabels(), visible=False)
By making your yticklabels invisible, they are still used in
determining the position of the ylabel, but they aren't displayed
(this may be a mpl bug, I haven't thought about it enough). What you
want to do is turn off the tick labels altogether.
ax.set_yticklabels([])
Hope this helps,
JDH
John,
thanks for your answer : it solved the problem !
cheers,
nicolas
···
On Monday 13 June 2005 17:33, John Hunter wrote:
Your problem is here:
setp(a.get_yticklabels(), visible=False)
By making your yticklabels invisible, they are still used in
determining the position of the ylabel, but they aren't displayed
(this may be a mpl bug, I haven't thought about it enough). What you
want to do is turn off the tick labels altogether.
ax.set_yticklabels()