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
This can be fixed e.g. by adding a call to fig.canvas.draw() before computing trans_angle, but even the "old" behavior was pretty brittle -- for example, if you interactively change the figure size, the text goes out of alignment, so I'm not too worried about losing it here. The correct solution (which is robust against figure resizes) is the one implemented in matplotlib.contour.ClabelText; right now a quick and dirty solution is to just write th1.__class__ = mpl.contour.ClabelText (ugh!) but I think it would be reasonable to move that feature (e.g. as a rotation_transform=ax.transData property) to the main Text class.
The "Text Rotation Relative To Line" example appears to be broken in the current docs:
Compared to older versions of the module:
Checking back through older versions of the documentation, it looks as though this broke in v3.2.0 as it looks to have still been fine in v3.1.3
The text was updated successfully, but these errors were encountered: