Skip to content

Commit ca30d88

Browse files
committed
Labels on nplates vs time plot
1 parent b2b8a7e commit ca30d88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stagpy/plates.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,8 @@ def cmd():
796796
nb_plates[i] = (nb_plates[i - 2] + nb_plates[i - 1] +
797797
nb_plates[i] + nb_plates[i + 1] +
798798
nb_plates[i + 2]) / 5
799-
figt = plt.figure()
800-
plt.axis([time[0], time[-1], 0, np.max(nb_plates)])
801-
plt.plot(time, nb_plates)
799+
figt, axis = plt.subplots()
800+
axis.plot(time, nb_plates)
801+
axis.set_xlabel("Time")
802+
axis.set_ylabel("Number of plates")
802803
saveplot(figt, f'plates_{istart}_{iend}')

0 commit comments

Comments
 (0)