first attempt at states

master
LEdoian 9 months ago
parent 5204cebe0e
commit 4a6873bc2f

@ -59,11 +59,12 @@ def main():
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
states = sorted(ts.states)
ys = [tuple(ts.data[time][0].get(state, 0) for state in states) for time in x] # numbers per state
# We do not show jobstates atm. Too lazy.
# ys are transposed we need vectors by times, not by states.
ys = list(zip(*ys))
plt.stackplot(x, *ys)
plt.stackplot(x, ys, labels=states)
print('showing plot')
plt.show(block=False)

Loading…
Cancel
Save