Skip to content

Commit

Permalink
stats_graph: fix for drawing single graph
Browse files Browse the repository at this point in the history
  • Loading branch information
maniek2332 committed Mar 1, 2021
1 parent d03b641 commit c29f79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaa/tools/stats_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c29f79c

Please sign in to comment.