Open
Description
Hi there,
Currently, when visualizing gene expression or numerical observations in napari-spatialdata, the colormap and colorbar appear to be hard-coded to a range of
I would like an option (or a change in default behavior) where:
- The colormap scale and contrast limits are automatically set to (min, max) of the raw counts for the selected gene/variable.
- The colorbar widget reflects these true values instead of the normalized
$[0, 1]$ range. - Users can manually adjust these limits in the napari layer controls to values outside the
$[0, 1]$ range if needed.
Metadata
Metadata
Assignees
Labels
No labels
Activity
LucaMarconato commentedon Mar 1, 2026
Hi, thanks for reporting. It's a bit hidden napari UI feature, but if you right click on the contrast limit slider you will be able to change limits. Did you try that?
Regarding an automatic limit based on min, max, it may slow down the interface for large non-raster, non-pyramidal data, so that would have to be considered carefully.
lijinbio commentedon Apr 7, 2026
Hi @LucaMarconato , thank you for your suggestions. I just wanted to let you know that after following them, the right-click option does not show the limits to change.
AlbertoFabbri93 commentedon Apr 27, 2026
Is the contrast limit slider the one in the picture or? Because nothing happens when I change the range.
LucaMarconato commentedon May 11, 2026
@lijinbio now I understood. I was referring to the "contrast limits" slider (for raster data), this one here:
@lijinbio @AlbertoFabbri93 the colorbar slider is not working, it's a known issue, it will be addressed in a future version #227