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
{{ message }}
Repository navigation
[Bug]: Irregular pixel widths in rasterized pcolor #23391
Pixel widths appear irregularly in pcolor(x, y, z, rasterized=True), while x and y are regular. Using rasterized=False provides correct (equal size) pixels, but saving the figure to .png (instead of .pdf) will show the same irregular pixel width bug.
It looks like a resampling bug, which messes up precise data visualization completely.
I'm going to close as an understood problem tracked in #6827 among other places. Yes this is very annoying, and there is a partial solution that we hope to implement soon... Thanks,
Thanks for working on a solution. The referenced issues seem to deal with border pixels and overlapping, rather than constant size pixels, but I understand if this is related at the very bottom of the code implementation. Nevertheless, I don't see why this is a reason to close (~mark as solved) this issue?
Activity
jklymak commentedon Jul 6, 2022
I think this is basically #17182
jklymak commentedon Jul 7, 2022
I'm going to close as an understood problem tracked in #6827 among other places. Yes this is very annoying, and there is a partial solution that we hope to implement soon... Thanks,
mschroen commentedon Jul 7, 2022
Thanks for working on a solution. The referenced issues seem to deal with border pixels and overlapping, rather than constant size pixels, but I understand if this is related at the very bottom of the code implementation. Nevertheless, I don't see why this is a reason to close (~mark as solved) this issue?
jklymak commentedon Jul 7, 2022
We have over 1.5k issues so we try and cut down on duplicates at the triage stage.
Also for the behaviour you are describing, you should play with the various places "snap" can be set. https://matplotlib.org/stable/api/_as_gen/matplotlib.artist.Artist.set_snap.html
tacaswell commentedon Jul 7, 2022
Try passing
which should increase the effective dpi that the artists are rasterized at (by default it as at 72 dpi).