Open
Description
##
from spatialdata.datasets import blobs
import spatialdata_plot
import matplotlib.pyplot as plt
sdata = blobs()
sdata['blobs_polygons']['column'] = 0
(
sdata.pl.render_images('blobs_image')
.pl.render_shapes('blobs_circles', color='radius')
.pl.render_shapes('blobs_polygons', color='column')
.pl.show()
)
plt.show()
gives
Which looks great! But it may be confusing to know which colorbar refers to what. I would consider one of the following:
- we leave it as it is: the user should use different colorbars (e.g. viridis + gray) when plotting multiple elements at the same time, so the ambiguity doesn't exist
- we add a title on top of the colorbar to make clear what the colorbar refers to
- we show only one colorbar maximum.
I prefer having multiple colorbar, so I'd choose either 1 or 2. @timtreis @Sonja-Stockhaus wdyt?