I use dash slicer for my 2D image data with time variation. I want to show image with colormaps (if possible add clim) like we normally do using matplotlib. Do you know any example of this?
my code is below:
from dash import Dash, html
from dash_slicer import VolumeSlicer
import os
from PIL import Image
app = Dash(__name__, update_title=None)
image = []
names = ['df_','DF_']
value = r'E:\young\'
files = sorted(os.listdir(value))
df_files = [file for file in files for name in names if name in file]
for df_file in df_files:
file = os.path.join(value,df_file)
image_temp = Image.open(file)
image.append(np.array(image_temp))
img = np.array(image)
slicer = VolumeSlicer(app, img)
slicer.graph.config["scrollZoom"] = False
app.layout = html.Div([slicer.graph, slicer.slider, *slicer.stores])
if __name__ == "__main__":
app.run(debug=True, dev_tools_props_check=False, port = 5463)