Skip to content

Commit

Permalink
work on plot features
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 24, 2019
1 parent 32d34ac commit b979caf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions shapeout2/gui/ana_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __getstate__(self):
"downsampling value": self.spinBox_downsample.value(),
"enabled": self.groupBox_scatter.isChecked(),
"marker hue": self.comboBox_marker_hue.currentData(),
"marker size": self.spinBox_marker_size.value(),
"marker size": self.doubleSpinBox_marker_size.value(),
"hue feature": self.comboBox_marker_feature.currentData(),
"colormap": self.comboBox_colormap.currentData(),
},
Expand Down Expand Up @@ -101,7 +101,7 @@ def __setstate__(self, state):
self.groupBox_scatter.setChecked(sca["enabled"])
hue_index = self.comboBox_marker_hue.findData(sca["marker hue"])
self.comboBox_marker_hue.setCurrentIndex(hue_index)
self.spinBox_marker_size.setValue(sca["marker size"])
self.doubleSpinBox_marker_size.setValue(sca["marker size"])
feat_index = feats_srt.index(sca["hue feature"])
self.comboBox_marker_feature.setCurrentIndex(feat_index)
color_index = COLORMAPS.index(sca["colormap"])
Expand Down
23 changes: 13 additions & 10 deletions shapeout2/gui/ana_plot.ui
Original file line number Diff line number Diff line change
Expand Up @@ -429,23 +429,26 @@
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Marker size</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinBox_marker_size">
<widget class="QDoubleSpinBox" name="doubleSpinBox_marker_size">
<property name="suffix">
<string> pt</string>
</property>
<property name="minimum">
<property name="decimals">
<number>1</number>
</property>
<property name="maximum">
<number>10</number>
<property name="minimum">
<double>0.100000000000000</double>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Marker size</string>
<property name="value">
<double>3.000000000000000</double>
</property>
</widget>
</item>
Expand Down

0 comments on commit b979caf

Please sign in to comment.