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
BUG: manual clabel positioning broke between 1.2 and 1.3 #2475
Comments
Strange -- I can't reproduce with 1.3.x or master, with either the above script or the one produced in the linked mailing list post. Does this happen only with certain figure sizes? Is this on a non-Agg backend? |
For the record, I've tried both Linux (GtkAgg) and Mac (MacOSX backend), and still no sign of the artifacts in the mailing list post. |
@mdboom, I have verified the problem on the mac with the macosx, qt4agg and tkagg backends and on a linux virtual machine with the qt4agg and gtkagg backends. I haven't tried any others. On both systems I did a clean build (following git clean -dfx) and on the linux system I also deleted all mpl things from the installation destination. To reproduce the problem, I run the test script as a standalone script, and start clicking on contours. For each click, an incorrectly rotated number is shown, with a line running off to the upper right. |
Ah -- the clicking on contours part is what I was missing. I am now able to reproduce. |
I reproduce this problem on Linux w matplotlib |
… manually produce ugly spikes in the contours. The problem was that screen coordinates were being passed as data coordinates when the contour was split to add room for the label.
… manually produce ugly spikes in the contours. The problem was that screen coordinates were being passed as data coordinates when the contour was split to add room for the label. Incorporate my fix and miili's matplotlib#2806 change
BUGFIX: This change fixes #2475, where contour labels added manually
The bug is reported to the matplotlib-users list by Felix Patzelt on Sept. 28:
http://matplotlib.1069221.n5.nabble.com/Broken-clabel-manual-True-in-1-3-0-td42124.html.
Below is a slightly edited version of the script he provided to make it easy to reproduce the problem. I have verified that the error occurs in master.
The text was updated successfully, but these errors were encountered: