-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't workingshapes 🫧Anything related to ShapesAnything related to Shapes
Description
In datashader, linewidths are given in pixels, e.g. to Canvas.line(), while matplotlib measures linewidths in points. This leads to differences in the plotting results that are bigger the larger the linewidth value. Example:
import spatialdata_plot
from spatialdata.datasets import blobs
blob = blobs()
blob.pl.render_shapes("blobs_circles", outline_width=20).pl.show()whereas
blob.pl.render_shapes("blobs_circles", outline_width=20, method="datashader").pl.show()gives
Would be good if the value passed to datashader would be normalized at some point so that the result would be closer to matplotlib.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingshapes 🫧Anything related to ShapesAnything related to Shapes
