clear plot just before, not at random place

master
LEdoian 9 months ago
parent 6cad303285
commit 5204cebe0e

@ -56,6 +56,8 @@ def main():
print('pickle saved')
# Show the plot
plt.close()
plt.clf()
x = sorted(ts.data.keys()) # times
ys = [tuple(ts.data[time][0].get(state, 0) for state in ts.states) for time in x] # numbers per state
# We do not show jobstates atm. Too lazy.
@ -66,8 +68,5 @@ def main():
plt.show(block=False)
plt.pause(poll_rate)
plt.close()
plt.clf()
main()

Loading…
Cancel
Save