diff --git a/src/kaa/tools/stats_graph.py b/src/kaa/tools/stats_graph.py index ae5623c3..68b010c0 100644 --- a/src/kaa/tools/stats_graph.py +++ b/src/kaa/tools/stats_graph.py @@ -114,7 +114,7 @@ def __init__(self, data_queue: queue.Queue, self.figure, self.axes = plt.subplots(needed_subplots_count, 1) # for single plot returned axes will not be an iterable if not isinstance(self.axes, np.ndarray): - self.axes = np.ndarray([self.axes]) + self.axes = np.array([self.axes]) plt.subplots_adjust(left=0.1, right=0.99, top=0.95, bottom=0.05) for ax in self.axes: ax.set_xlim(-PLOT_DISPLAYED_VALUES, 0)