diff --git a/Meta/Keywords/scripting_library/UI/plots/displayed_elements.py b/Meta/Keywords/scripting_library/UI/plots/displayed_elements.py index cf2ad4d70..dfdba0d56 100644 --- a/Meta/Keywords/scripting_library/UI/plots/displayed_elements.py +++ b/Meta/Keywords/scripting_library/UI/plots/displayed_elements.py @@ -166,6 +166,7 @@ def _plot_graphs(self, graphs_by_parts): size = None if dataset[0].get(commons_enums.PlotAttributes.SHAPE.value, None) is None: shape = None + line_shape = dataset[0].get("line_shape", None) own_yaxis = dataset[0].get(commons_enums.PlotAttributes.OWN_YAXIS.value, False) for data in dataset: if x is not None: @@ -209,6 +210,7 @@ def _plot_graphs(self, graphs_by_parts): text=text, x_type="date", y_type=y_type, + line_shape=line_shape, mode=data.get(commons_enums.PlotAttributes.MODE.value, None), own_yaxis=own_yaxis, color=color, @@ -276,6 +278,7 @@ async def _get_cached_values_to_display(self, cached_value_metadata, x_shift, st kind = cached_value_metadata[commons_enums.PlotAttributes.KIND.value] mode = cached_value_metadata[commons_enums.PlotAttributes.MODE.value] own_yaxis = cached_value_metadata[commons_enums.PlotAttributes.OWN_YAXIS.value] + line_shape = cached_value_metadata["line_shape"] condition = cached_value_metadata.get("condition", None) try: cache_database = databases.CacheDatabase(cache_file) @@ -310,6 +313,7 @@ async def _get_cached_values_to_display(self, cached_value_metadata, x_shift, st commons_enums.PlotAttributes.KIND.value: kind, commons_enums.PlotAttributes.MODE.value: mode, commons_enums.PlotAttributes.OWN_YAXIS.value: own_yaxis, + "line_shape": line_shape, }) else: plotted_values.append({ @@ -318,6 +322,7 @@ async def _get_cached_values_to_display(self, cached_value_metadata, x_shift, st commons_enums.PlotAttributes.KIND.value: kind, commons_enums.PlotAttributes.MODE.value: mode, commons_enums.PlotAttributes.OWN_YAXIS.value: own_yaxis, + "line_shape": line_shape, }) except KeyError: pass