Answers for "Plotting sequences with pyplot"

0

Plotting sequences with pyplot

import matplotlib.pylab as plt
from matplotlib.pyplot import figure

figure(num=None, figsize=(12, 8), dpi=80, facecolor='w', edgecolor='k')

plt.plot(Sequence, label="label", color='orange')

plt.minorticks_on()
plt.grid(which='major', color='black', ls = '-', lw = 0.25)
plt.grid(which='minor', color='blue', ls = '-', lw = 0.10) 

plt.title('Title')

plt.xlabel('Time')
plt.ylabel('Value')
plt.legend(loc='best')

plt.xticks(rotation=30)
plt.show();

# where sequence = X, y
Posted by: Guest on December-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language