Skip to content

Commit 3e1d514

Browse files
committed
Fixing some missing settings for the new widget
1 parent 036d14b commit 3e1d514

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

DataPlotly/core/plot_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __init__(self, plot_type: str = 'scatter', properties: dict = None, layout:
154154
'line_dash_threshold': 'dot',
155155
'threshold_value': 1,
156156
'threshold': False,
157-
'scatterline_interpolation_combo': 'linear'
157+
'interpolation_shape': 'linear'
158158
}
159159

160160
# layout nested dictionary

DataPlotly/gui/plot_settings_widget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ def refreshWidgets(self): # pylint: disable=too-many-statements,too-many-branch
943943
self.show_lines_check: ['contour'],
944944
self.scatterline_gaps_check: ['scatter'],
945945
self.skip_null_values_check: ['scatter', 'bar', 'contour', 'polar', 'filledline'],
946+
self.scatterline_interpolation_label: ['scatter'],
946947
self.scatterline_interpolation_combo: ['scatter'],
947948
# layout customization
948949
self.show_legend_check: ['all'],
@@ -1451,7 +1452,7 @@ def set_settings(self, settings: PlotSettings): # pylint: disable=too-many-stat
14511452
self.threshold_value.setValue(settings.properties.get('threshold_value', 1))
14521453
self.fill.setChecked(settings.properties.get('fill', False))
14531454
self.scatterline_gaps_check.setChecked(settings.properties.get('connect_gaps',False))
1454-
self.scatterline_interpolation_label.setCurrentText(settings.properties.get('interpolation_shape', 'linear'))
1455+
self.scatterline_interpolation_combo.setCurrentText(settings.properties.get('interpolation_shape', 'linear'))
14551456

14561457
def create_plot_factory(self) -> PlotFactory:
14571458
"""

0 commit comments

Comments
 (0)