File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ def _make_multi_image_single_channel_sdata(self) -> SpatialData:
2828 return SpatialData (images = {"img1" : img1 , "img2" : img2 }, labels = {"lab" : labels })
2929
3030 def test_plot_image_auto_colorbar_for_single_channel (self , sdata_blobs : SpatialData ):
31- sdata_blobs .pl .render_images (element = "blobs_image" ).pl .show ()
31+ # Create a single-channel image by selecting only channel 0
32+ original_img = sdata_blobs ["blobs_image" ]
33+ single_channel_img = original_img .isel (c = 0 ).expand_dims ("c" )
34+ sdata_blobs ["blobs_image_1c" ] = single_channel_img
35+ sdata_blobs .pl .render_images (element = "blobs_image_1c" ).pl .show ()
3236
3337 def test_plot_colorbar_img_default_location (self , sdata_blobs : SpatialData ):
3438 sdata_blobs .pl .render_images ("blobs_image" , channel = 0 , cmap = "Reds" ).pl .show ()
You can’t perform that action at this time.
0 commit comments