Skip to content
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

Is the antialiasing right-shifted along the x-axis? #162

Open
carbocation opened this issue Feb 13, 2022 · 0 comments
Open

Is the antialiasing right-shifted along the x-axis? #162

carbocation opened this issue Feb 13, 2022 · 0 comments

Comments

@carbocation
Copy link

carbocation commented Feb 13, 2022

Sorry for the vague question. I can provide pictures but I don't have self-contained demonstration code yet.

Non-Integer bounds

When I draw rectangles with gg for non-integer bounds along the y axis (e.g., 0, 4.6, 9.2, etc), I get what appears to be banding between the vertical edges of some of the rectangles. That's to be expected, but what strikes me as odd is that these bands appear "shifted" to the right. Visually, what I mean is that in an image with darkness around the edges and white in the center, these bands drag darkness from left to right, and white from left to right.

Left:
image

Right:
image

Integer bounds

The reason that I think this might be related to some aspect of antialiasing is that when I draw rectangles with gg for integer bounds (e.g., 0, 5, 10) along the y axis, this does not appear:

Left:
image

Right:
image

Edit: I suppose if the antialiasing is incorporating data from both x and y axes, that could also explain this appearance. I wonder if it's possible to modify how it is performed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant