You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the slight inaccuracy in positioning of the markers at the positioning of the markers at the positions marked with the red circles, resulting in a "step-like" behavior (you may need to open the image in a larger viewer to notice it).
The data itself does not present this behavior, as can be checked just by zooming in these regions.
I wonder whether it is just a limitation on the ability of antialiasing to deliver a visual impression of sub-pixel accuracy. The steppiness is at the one-pixel level, but it doesn't look like simple pixel-snapping.
Yes, it's definitely related to how we stamp the markers. We don't do individual subpixel positioning for the markers. We could do that but it would be significantly slower (so should be a user-configurable option).
I'm also suffering from this issue. See the attached script and image for an example of what happens to a grid of evenly spaced markers. This level of quality is simply not acceptable for professional use - it looks like something out of the 1980s, but this 2017, and subpixel positioning is no longer optional.
I hadn't noticed the marker positioning examples. I was more interested in
the text kerning at the time. That's great to know that the Cairo-based
backends can be a suitable work-around when they are available (I am open
to making them the default over AGG, but that might have to wait until
v3.0, and wider adoption of the newer C++ standards across compilers).
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!
Activity
efiring commentedon Oct 7, 2016
I wonder whether it is just a limitation on the ability of antialiasing to deliver a visual impression of sub-pixel accuracy. The steppiness is at the one-pixel level, but it doesn't look like simple pixel-snapping.
tacaswell commentedon Oct 8, 2016
Turning snapping off does not help that much. I wonder if this is related to the way we 'stamp' the markers?
attn @mdboom
tacaswell commentedon Oct 29, 2016
mdboom commentedon Dec 5, 2016
Yes, it's definitely related to how we stamp the markers. We don't do individual subpixel positioning for the markers. We could do that but it would be significantly slower (so should be a user-configurable option).
gson1703 commentedon Aug 3, 2017
I'm also suffering from this issue. See the attached script and image for an example of what happens to a grid of evenly spaced markers. This level of quality is simply not acceptable for professional use - it looks like something out of the 1980s, but this 2017, and subpixel positioning is no longer optional.
grid.py.txt

WeatherGod commentedon Aug 3, 2017
Could you repost that example. The link appears to be broken.
WeatherGod commentedon Aug 3, 2017
I would be curious if this is something that could be resolved with the Cairo rework?
gson1703 commentedon Aug 3, 2017
anntzer commentedon Aug 3, 2017
@WeatherGod It is indeed solved by mpl_cairo (in fact this was one of the original motivations for writing it). See second example at https://gitter.im/matplotlib/matplotlib?at=5963202789aea4761d81a829. (You even commenter right under it :-))
As a side note mpl_cairo also stamps the markers much faster (there's a timing script in the examples).
WeatherGod commentedon Aug 3, 2017
17 remaining items
Jona-L commentedon Apr 22, 2020
not sure if related or said before, but either:
(depending on if the axis is positioned correctly as well)
example:
github-actions commentedon Oct 9, 2023
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!
Snap markers to subpixels instead of whole ones