-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: ContourLabeler.clabel with manual != False breaks unconnected contours #27062
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
Milestone
Comments
Did this break, or did it never work? |
It looks correct in 3.7.3. I updated the "expected outcome" screenshot from that. |
It is also still broken in main now (6501209 ) |
ksunden
added a commit
to ksunden/matplotlib
that referenced
this issue
Oct 11, 2023
Closes matplotlib#27062 The code for rotation had referred to the original path, when it should only be rotating the connected segment, which had already been extracted.
5 tasks
Yay - the one-liner works for me. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug summary
When adding contour label positions manually (either via clicking or specifying an iterable of positions), contours with disconnected parts are not handled correctly, but sometimes rejoined seemingly arbitrarily.
Code for reproduction
Actual outcome
Expected outcome
As it looked in matplotlib 3.7.3:

Additional information
No response
Operating system
No response
Matplotlib Version
3.8.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
conda
The text was updated successfully, but these errors were encountered: