@@ -38,8 +38,9 @@ def __init__(self, *args, **kwargs):
3838 self .ui .comboBox_division .clear ()
3939 self .ui .comboBox_division .addItem ("Merge all plots" , "merge" )
4040 self .ui .comboBox_division .addItem ("One plot per dataset" , "each" )
41- self .ui .comboBox_division .addItem ("Scatter plots and joint contour plot" ,
42- "multiscatter+contour" )
41+ self .ui .comboBox_division .addItem (
42+ "Scatter plots and joint contour plot" ,
43+ "multiscatter+contour" )
4344 self .ui .comboBox_division .addItem ("Only contour plots" , "onlycontours" )
4445 self .ui .comboBox_division .setCurrentIndex (2 )
4546
@@ -53,10 +54,14 @@ def __init__(self, *args, **kwargs):
5354 self .on_hue_selected )
5455 self .ui .comboBox_marker_feature .currentIndexChanged .connect (
5556 self .on_hue_selected )
56- self .ui .comboBox_axis_x .currentIndexChanged .connect (self .on_axis_changed )
57- self .ui .comboBox_axis_y .currentIndexChanged .connect (self .on_axis_changed )
58- self .ui .comboBox_scale_x .currentIndexChanged .connect (self .on_axis_changed )
59- self .ui .comboBox_scale_y .currentIndexChanged .connect (self .on_axis_changed )
57+ self .ui .comboBox_axis_x .currentIndexChanged .connect (
58+ self .on_axis_changed )
59+ self .ui .comboBox_axis_y .currentIndexChanged .connect (
60+ self .on_axis_changed )
61+ self .ui .comboBox_scale_x .currentIndexChanged .connect (
62+ self .on_axis_changed )
63+ self .ui .comboBox_scale_y .currentIndexChanged .connect (
64+ self .on_axis_changed )
6065 self .ui .spinBox_column_count .valueChanged .connect (
6166 self .on_column_num_changed )
6267 self .ui .widget_range_x .range_changed .connect (self .on_range_changed )
@@ -166,7 +171,8 @@ def write_plot_state(self, state):
166171 self .ui .comboBox_axis_y .setCurrentIndex (
167172 self .ui .comboBox_axis_y .findData (gen ["axis y" ]))
168173 self .ui .checkBox_isoelastics .setChecked (gen ["isoelastics" ])
169- lut_index = self .ui .comboBox_lut .findData (gen .get ("lut" , "LE-2D-FEM-19" ))
174+ lut_index = self .ui .comboBox_lut .findData (
175+ gen .get ("lut" , "LE-2D-FEM-19" ))
170176 self .ui .comboBox_lut .setCurrentIndex (lut_index )
171177 kde_index = self .ui .comboBox_kde .findData (gen ["kde" ])
172178 self .ui .comboBox_kde .setCurrentIndex (kde_index )
@@ -188,7 +194,8 @@ def write_plot_state(self, state):
188194 hue_index = self .ui .comboBox_marker_hue .findData (sca ["marker hue" ])
189195 self .ui .comboBox_marker_hue .setCurrentIndex (hue_index )
190196 self .ui .doubleSpinBox_marker_size .setValue (sca ["marker size" ])
191- feat_index = self .ui .comboBox_marker_feature .findData (sca ["hue feature" ])
197+ feat_index = self .ui .comboBox_marker_feature .findData (
198+ sca ["hue feature" ])
192199 feat_index = feat_index or 0
193200 self .ui .comboBox_marker_feature .setCurrentIndex (feat_index )
194201 color_index = COLORMAPS .index (sca ["colormap" ])
@@ -301,10 +308,11 @@ def _set_range_xy_state(self, axis_x=None, range_x=None,
301308
302309 plot_id = self .current_plot .identifier
303310
304- for axis , rang , rc in zip ([axis_x , axis_y ],
305- [range_x , range_y ],
306- [self .ui .widget_range_x , self .ui .widget_range_y ],
307- ):
311+ for axis , rang , rc in zip (
312+ [axis_x , axis_y ],
313+ [range_x , range_y ],
314+ [self .ui .widget_range_x , self .ui .widget_range_y ],
315+ ):
308316 if axis is not None :
309317 lim = self .pipeline .get_min_max_coarse (
310318 feat = axis ,
@@ -535,7 +543,7 @@ def on_pp_mod_recv(self, data):
535543 "active" : True ,
536544 "start" : state ["general" ][nm ][0 ],
537545 "end" : state ["general" ][nm ][1 ],
538- })
546+ })
539547 rc .blockSignals (False )
540548
541549 @QtCore .pyqtSlot ()
0 commit comments