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
When plotting an image, it seems that there is a 0.5-pixel shift. This is not visible for large images but becomes very visible if we zoom in, and, mostly, it gets amplified with transformations (a Scale(1000, 1000) transformation will create a shift of 500 pixels).
This is also problematic for the datashader backend, because if an image is rendered before, its limits are used to determine the canvas size => we see an offset of the datashader points compared to what matplotlib would give us (and what the axis labels say!)
Activity
[-]pixel shift in `render_images`[/-][+]Pixel shift of 0.5 in `render_images`[/+][-]Pixel shift of 0.5 in `render_images`[/-][+]Pixel shift in `render_images`[/+]LucaMarconato commentedon Feb 19, 2024
Thanks for reporting!
Maybe related to this: scverse/spatialdata#165. Also, if fixed before, better to add a test so that we verify we don't reintroduce this after scverse/spatialdata#308 is closed.
Sonja-Stockhaus commentedon Oct 25, 2024
This is also problematic for the datashader backend, because if an image is rendered before, its limits are used to determine the canvas size => we see an offset of the datashader points compared to what matplotlib would give us (and what the axis labels say!)
e.g.
gives me:

@timtreis FYI
fix(render): align rasterized artists with get_extent (pixel-edge ext…
fix(render): align rasterized artists with get_extent (pixel-edge ext…
test(baselines): regenerate for #216 pixel-edge extent shift