-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Markers are not centered properly #11836
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
Either that, or the markers are fine but the lines are slightly offset from the intended points. |
Possibly related to #7233? |
oops, yeah I just found that and #8533 |
mark as duplicate? |
No problem. Thank you for opening the ticket ;). I did not follow the latest evolution of those news, so I do not know if there were some improvements on that topic :/ (and pinging @anntzer who tried to tackle those questions IIRC ^^). Marking as duplicate and closing as the issue seems similar to the ones reported in #7233, #7262, #7624, and #8533. Anyone please remove the flag and reopen the thread (or ask for it) if you disagree. |
thanks but that doesn't concern me, it's only the fact that the markers are off-center compared to the lines joining them. |
There is no one working on fixing this for the default Agg-based backends (AFAIK), although the issue is well understood. You may want to try the cairo based backends, which don't have this specific issue (not sure you can activate them with jupyter notebook? Perhaps @jklymak knows something here as I know he uses the notebook); alternatively, I wrote https://github.com/anntzer/mplcairo (another cairo based backend) in particular to fix the issue. |
You may use the Cairo backends in jupyter just as other backends,
The same approach can also be used with the usual AGG backends. Because the stamping issue is more pronounced the smaller the dpi, one may save a high-dpi version of the figure and display it with lower width in the notebook.
|
Unfortunately we have not increased the number of marker stamps yet. The linked issues are still open. |
The issue can be ameliorated by increasing the DPI. |
I am using IPython Notebook to view matplotlib graphs. I have noticed many times that the markers are drawn slightly off-center. Here is an example:
Closeup:
Code to reproduce:
Matplotlib version
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inlineThe text was updated successfully, but these errors were encountered: