-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Plotted lines not symmetrical #8746
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
Turning the DPI up to 100 will help. This is a feature of the Agg backend which will 'snap' to the nearest pixel which makes the lines look 'sharper' assuming that 1 pixel is very small. This has been the behavior of the Agg backend for a while but it is getting noticed a lot more recently (not sure if it is all the high-dpi screens leading to more up-sampling or the larger defaults making it more obvious). |
Is there a way to turn this feature off? Changing the DPI in the settings of Spyder doesn't fix the interactive display. |
The gtk3cairo (any cairo backend, I guess) backend does not suffer from this issue. I have been thinking of refactoring the backends so that one could also have {qt{4,5},wx,tk}cairo backends with minimal effort... |
Digging into this is on my 'few days of work' project list... Setting the |
path.snap = false does not help. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Closing as a duplicate of #7233, I think. |
Bug report
Bug summary
I tried to reproduce this figure, but when I plotted using lines and dots, the dots are in the correct place, but the lines are slightly out of place, making things asymmetrical.
Code for reproduction
Actual outcome
The dots look offset on the legend:
But I guess it's actually the lines that are offset and asymmetrical:
Expected outcome
If I save as SVG and open in Firefox, it looks fine:
Matplotlib version
This is inside Spyder 3.1.4 installed from default Anaconda channel, with graphics backend set to "automatic":
The text was updated successfully, but these errors were encountered: