-
Notifications
You must be signed in to change notification settings - Fork 14
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
Points not transformed when method="datashader"
#337
Comments
Thanks for reporting. Please see the discussion on this issue also here: #291. |
I think I'm seeing a consequence of that in my own data. Calling (
sdata_cropped
.pl.render_points(TRANSCRIPT_KEY, size=1, color="red", method="matplotlib")
.pl.show()
) works just fine, but when using
|
@Marius1311 thanks for reporting. How did you construct You can access it via one of these two functions:
CC @melonora |
@clwgg Thanks for reporting! I reproduced the problem without the image in the background which led to the points being shifted by 0.5 when using datashader (because of #216). from spatialdata import SpatialData
from spatialdata.models import PointsModel
from spatialdata.transformations import Scale
sdata = SpatialData(
points={
"points1": PointsModel.parse(
pd.DataFrame({"y": [0, 0, 10, 10, 4, 6, 4, 6], "x": [0, 10, 10, 0, 4, 6, 6, 4]}),
transformations={"global": Scale([2, 2], ("y", "x"))},
)
},
)
sdata.pl.render_points("points1", method="matplotlib", size=50, color="lightgrey").pl.render_points("points1", method="datashader", size=10, color="red").pl.show() With this, I get a) before: b) after my fix (#378): |
@clwgg could you verify that Sonja's branch fixes the issue for you as well? :) Thanks! |
As per the title, I just ran into a case where
datashader
was chosen as the method forrender_points
, which led to my points being plotted without the relevant transformation being applied. I stole the example from #182 for testing below.With current
main
:With #309:
The text was updated successfully, but these errors were encountered: