lf_graph.py: lf_graph had a very confusing assignment for init values which was unstable. Needs further work, but this will work for now.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-08 13:00:55 -08:00
parent 74c79293de
commit 8edb0cdb8d

View File

@@ -202,8 +202,6 @@ class lf_scatter_graph:
_y_data_set = [[30, 55, 69, 37]]
if _label is None:
_label = ["num1", "num2"]
if _color is None:
_color = ["r", "y"]
self.x_data_set = _x_data_set
self.y_data_set = _y_data_set
self.xaxis_name = _xaxis_name
@@ -280,8 +278,6 @@ class lf_stacked_graph:
_data_set = [[1, 2, 3, 4], [1, 1, 1, 1], [1, 1, 1, 1]]
if _label is None:
_label = ['Success', 'Fail']
if _color is None:
_color = ["b", "g"]
self.data_set = _data_set # [x_axis,y1_axis,y2_axis]
self.xaxis_name = _xaxis_name
self.yaxis_name = _yaxis_name