File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def update_colors_select(event):
169169
170170def create_color_pickers (states , colors ):
171171 color_picker_list = []
172- for state , color in zip (states [0 ][:: - 1 ] , colors ):
172+ for state , color in zip (states [0 ], colors ):
173173 color_picker = pn .widgets .ColorPicker (name = state , value = color )
174174 color_picker .param .watch (update_colors_select , "value" )
175175 color_picker_list .append (color_picker )
@@ -179,7 +179,7 @@ def create_color_pickers(states, colors):
179179@pn .cache
180180def palette (res , colors_picked ):
181181 cmaps = [colormap_from_single_color (color_picked ) for color_picked in colors_picked ]
182- return sd .palette (res .states , cmaps = cmaps )
182+ return sd .palette (res .states [:: - 1 ] , cmaps = cmaps [:: - 1 ] )
183183
184184
185185@pn .cache
You can’t perform that action at this time.
0 commit comments