-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
Hi,
I stumbled over a bit of surprising behaviour when working with some plots with text and panning them.
Apperantly the default behaviour of text is not to have a clipbox/viewbox attached to them (other than figure canvas?).
A small sample code here.
plt.text(.5,.5,'center')
plt.text(.8,.8,'panned')
plt.text(1.1,0.3,'original position outside plot canvas')
plt.plot([0,1])And the picture after a bit of panning.

Clearly the text object is not passed through the same clipping box as the line, I think that should be the default, and if someone wants to place text outside of the current viewbox of the axis, that could be a kwarg somehow.
Thanks for a great library.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels