-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cannot plot continuous var values to labels #165
Comments
My mistake, I had to use the parameter sdata.pl.render_labels('blobs_labels', color='channel_0_sum').pl.show()
|
This error is in |
Apologies, I fixed the bug in Anyway, this leads to another bug now, which I think it's due to the fact that spatialdata-plot expects a value also for the background. Note, to make the task easier, and also to take into account that the labels element could contain non-continuous labels, this new PR (merged) ensures that the dataframe returned by This is the traceback of the new bug:
|
Finally in this PR scverse/spatialdata#369, I ensure that for labels, get_values() returns a table whose row are sorted by ascending labels value. Anyway, the safe way to match the returned dataframe to the labels is by looking at the index of the returned dataframe, not by looking at the order. |
Setting medium priority since it shows up in the documentation notebooks. |
The current error |
I'd love to wait for @Sonja-Stockhaus' #164 to get started on this because we pulled the |
Ok perfect, thanks a lot! |
Update: Issue persists, will tackle next.
|
This code tries to plots the
var
present in the table in theblobs
dataset, which is mapped to thelabels
.This is the output produced (tried for all the

var_names
:'channel_0_sum'
,'channel_1_sum'
,'channel_2_sum'
, but all lead to the same plot)This is the output produced by

napari_spatialdata
).
The text was updated successfully, but these errors were encountered: