-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Text ignores rotational part of transformation #698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah -- text rotation has evolved very strangely overtime due to the history in the Gdk API. I think we definitely need to address this. It's tricky, though, because we currently use the transformation only for text placement and we wouldn't want the scale of the transform to start affecting font size. |
@mdboom, quick thought: would it make sense to have the "rotation" kwarg accept one more string, "transform", which would be telling it to take the rotation angle from the transform? |
This bug is still valid. |
I would also like to ditto this, as in mplot3d, I have to manually compute On Sun, Aug 17, 2014 at 9:18 PM, Thomas A Caswell notifications@github.com
|
@bearstrong are you still working on this? |
…lib#698) Considering the text rotation don't get transformed may by a desired behavior (such as text for annotation to some data point). Here made it as an option to control whether or not the text rotation get transformed.
Have sent a PR to address this issue, not quite sure if this is the way you want to do it. |
…lib#698) Considering the text rotation don't get transformed may by a desired behavior (such as text for annotation to some data point). Here made it as an option to control whether or not the text rotation get transformed.
…ormed-too-gh698 Resolve 'text ignores rotational part of transformation' (#698)
The linked PR #15532 adds an option enabling this. |
When specifying a transformation to
plt.text
, the rotational part of the transformation is ignored. I'm aware of therotation
keyword, but in my use case, I need some more fine-grained control.Here's an example, in which a box and text receives the same transformation, but displays differently:
The text was updated successfully, but these errors were encountered: