We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab73ea commit 7dfb879Copy full SHA for 7dfb879
src/spatialdata_plot/pl/render.py
@@ -148,6 +148,9 @@ def _render_shapes(
148
if not (
149
len(set(color_vector)) == 1 and list(set(color_vector))[0] == to_hex(render_params.cmap_params.na_color)
150
):
151
+ # necessary in case different shapes elements are annotated with one table
152
+ if color_source_vector is not None:
153
+ color_source_vector = color_source_vector.remove_unused_categories()
154
_ = _decorate_axs(
155
ax=ax,
156
cax=cax,
0 commit comments