You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any ideas what may be going on? From delving into the code, I'm taking a wild guess that it's something in Tick._apply_params that may be going awry, but really not sure.
The text was updated successfully, but these errors were encountered:
It's not a bug, it's a feature...
The axis actually keeps two sets of ticks and labels, one for each side. When you call set_ticks_position('right') you are just telling the axis to hide the left-hand ticks and show the right-hand ticks. Since your call to set_yticklabels() was made when the left-hand side was active, it set only the left-hand labels. In fact, if at the end of your example you call `set_ticks_position('left') and print, you will see that the labels are still there.
It's a bit confusing. I suspect that if we were starting from scratch we could now design a simpler and more transparent API; but given where we are, I don't see any obvious change to make related to this issue.
When setting
yticklabels
orxticklabels
and then setting the position, thetick._text
field gets cleared.results in
This is true for either x- or y-ticklabels
However, the behavior is as expected when the position is set first, then the ticklabel values are set:
results in:
Full example, plus
pip list
:http://nbviewer.ipython.org/gist/anonymous/11332415
Any ideas what may be going on? From delving into the code, I'm taking a wild guess that it's something in
Tick._apply_params
that may be going awry, but really not sure.The text was updated successfully, but these errors were encountered: