File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class ViewConfiguration(dataclass.StateDataModel):
6161 color_blind : bool = dataclass .Sync (bool , False )
6262 use_log_scale : str = dataclass .Sync (str , "linear" )
6363 discrete_log : bool = dataclass .Sync (bool , False )
64- n_discrete_colors : int = dataclass .Sync (int , 1 )
64+ n_discrete_colors : int = dataclass .Sync (int , 4 )
6565 color_value_min : str = dataclass .Sync (str , "0" )
6666 color_value_max : str = dataclass .Sync (str , "1" )
6767 color_value_min_valid : bool = dataclass .Sync (bool , True )
@@ -196,7 +196,7 @@ def update_color_preset(
196196 invert ,
197197 log_scale ,
198198 discrete_log = False ,
199- n_discrete_colors = 1 ,
199+ n_discrete_colors = 4 ,
200200 n_colors = 255 ,
201201 ):
202202 self .config .preset = name
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class ViewConfiguration(dataclass.StateDataModel):
7777 color_blind : bool = dataclass .Sync (bool , False )
7878 use_log_scale : str = dataclass .Sync (str , "linear" )
7979 discrete_log : bool = dataclass .Sync (bool , False )
80- n_discrete_colors : int = dataclass .Sync (int , 1 )
80+ n_discrete_colors : int = dataclass .Sync (int , 4 )
8181 color_value_min : str = dataclass .Sync (str , "0" )
8282 color_value_max : str = dataclass .Sync (str , "1" )
8383 color_value_min_valid : bool = dataclass .Sync (bool , True )
@@ -193,7 +193,7 @@ def update_color_preset(
193193 invert ,
194194 log_scale ,
195195 discrete_log = False ,
196- n_discrete_colors = 1 ,
196+ n_discrete_colors = 4 ,
197197 n_colors = 255 ,
198198 ):
199199 self .config .preset = name
You can’t perform that action at this time.
0 commit comments