-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Doc]: Example for "Scale invariant angle label" does not scale the arc correctly #22392
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
I agree that they have not quite threaded the dpi to physical units dance properly, OTOH, I'm not convinced the annotations are meant to go not he inside of the Arcs either, and in my machine they do not (hiDPI). Someone will have to go in and fix the transforms here... |
That depends on the |
I would like to work on this issue. Can someone guide me (where to look at) except angle_annotation.py ?? |
I want to make sure I am clear on the actual issue here, as I'm reviewing #23027. The angle markings need to be scaled to take DPI into account so that the labels remain in the correct positions, correct? Here is an image that demonstrates the issue on different DPIs: The labels should always be inside the angle markings, but with different DPI settings, they are not. |
Bug summary
When setting a dpi value and using
unit = 'points'
in the AngleAnnotation example class, it does not scale the Arc width and height correctly. I will use the example from the link above to show the problem:Code for reproduction
Actual outcome
Expected outcome
The expected outcome can be produced when changing
size
toget_size()
in the Arc initialisation.Additional information
No response
Operating system
No response
Matplotlib Version
3.5.1
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
No response
The text was updated successfully, but these errors were encountered: