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
Showing legend by defaults and allowing richer customizability #459
legends: in my opinion, it would be great to show legends for the channels by default. Alternatively, one could consider implementing something like pl.render_legend() to give full customizability to the user.
This is an example of plot from spatialproteomics. Notebook here.
Hi @timtreis, yes, this is looking really good! One minor thing, I think if you call it channels_as_categories, it needs to be really clear what it does in the docs. Wondering if calling it something like legend or channel_legend would make more sense, but that might be confusing with the colorbar argument for single-channel images...
Activity
MeyerBender commentedon May 14, 2025
Example code snippet.
Currently returns this:
Add channels_as_categories parameter to render_images (#459)
timtreis commentedon Apr 4, 2026
Hey @MeyerBender, does #576 address your feature request?
MeyerBender commentedon Apr 7, 2026
Hi @timtreis, yes, this is looking really good! One minor thing, I think if you call it
channels_as_categories, it needs to be really clear what it does in the docs. Wondering if calling it something likelegendorchannel_legendwould make more sense, but that might be confusing with thecolorbarargument for single-channel images...timtreis commentedon Apr 7, 2026
How about
channels_as_legend?MeyerBender commentedon Apr 8, 2026
Yeah that works :)