plotting sequences with pyplot

Solutions on MaxInterview for plotting sequences with pyplot by the best coders in the world

showing results for - "plotting sequences with pyplot"
Emilia
12 Mar 2018
1import matplotlib.pylab as plt
2from matplotlib.pyplot import figure
3
4figure(num=None, figsize=(12, 8), dpi=80, facecolor='w', edgecolor='k')
5
6plt.plot(Sequence, label="label", color='orange')
7
8plt.minorticks_on()
9plt.grid(which='major', color='black', ls = '-', lw = 0.25)
10plt.grid(which='minor', color='blue', ls = '-', lw = 0.10) 
11
12plt.title('Title')
13
14plt.xlabel('Time')
15plt.ylabel('Value')
16plt.legend(loc='best')
17
18plt.xticks(rotation=30)
19plt.show();
20
21# where sequence = X, y