Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DataPlotly/core/plot_types/scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def create_trace(settings):
},
line={'width': settings.properties['marker_width'],
'dash': settings.properties['line_dash']},
connectgaps=settings.properties['connect_gaps'],
opacity=settings.properties['opacity']
)]

Expand Down
8 changes: 7 additions & 1 deletion DataPlotly/gui/plot_settings_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ def refreshWidgets(self): # pylint: disable=too-many-statements,too-many-branch
self.contour_type_label: ['contour'],
self.contour_type_combo: ['contour'],
self.show_lines_check: ['contour'],
self.scatterline_gaps_check:['scatter'],
# layout customization
self.show_legend_check: ['all'],
self.orientation_legend_check: ['scatter', 'bar', 'box', 'histogram', 'ternary', 'pie', 'violin'],
Expand Down Expand Up @@ -1064,6 +1065,7 @@ def refreshWidgets3(self):
self.line_lab.setVisible(False)
self.line_combo.setEnabled(False)
self.line_combo.setVisible(False)
self.scatterline_gaps_check.setEnabled(False)
elif self.marker_type_combo.currentText() == self.tr('Lines'):
self.point_lab.setEnabled(False)
self.point_lab.setVisible(False)
Expand All @@ -1073,6 +1075,7 @@ def refreshWidgets3(self):
self.line_lab.setVisible(True)
self.line_combo.setEnabled(True)
self.line_combo.setVisible(True)
self.scatterline_gaps_check.setEnabled(True)
else:
self.point_lab.setEnabled(True)
self.point_lab.setVisible(True)
Expand All @@ -1082,6 +1085,7 @@ def refreshWidgets3(self):
self.line_lab.setVisible(True)
self.line_combo.setEnabled(True)
self.line_combo.setVisible(True)
self.scatterline_gaps_check.setEnabled(True)

def setLegend(self):
"""
Expand Down Expand Up @@ -1157,7 +1161,8 @@ def get_settings(self) -> PlotSettings: # pylint: disable=R0915
'line_dash_threshold': self.line_types2[self.line_combo_threshold.currentText()],
'line_combo_threshold': self.line_combo_threshold.currentText(),
'threshold_value': self.threshold_value.value(),
'y_fields_combo': ', '.join(self.y_fields_combo.checkedItems())
'y_fields_combo': ', '.join(self.y_fields_combo.checkedItems()),
'connect_gaps': self.scatterline_gaps_check.isChecked()
}

if self.in_color_defined_button.isActive():
Expand Down Expand Up @@ -1406,6 +1411,7 @@ def set_settings(self, settings: PlotSettings): # pylint: disable=too-many-stat
self.threshold.setChecked(settings.properties.get('threshold', True))
self.threshold_value.setValue(settings.properties.get('threshold_value', 1))
self.fill.setChecked(settings.properties.get('fill', False))
self.scatterline_gaps_check.setChecked(settings.properties.get('connect_gaps',False))

def create_plot_factory(self) -> PlotFactory:
"""
Expand Down
Loading
Loading