Part of an evolving cheat sheet
Include the library
1 | import matplotlib.pyplot as plt |
Set the plot size to be larger
1 | plt.rcParams['figure.figsize'] = [30, 21] |
Set plot title
1 | plt.title("some title) |
Plot a line chart
1 | plt.plot(filtered['datetime'], filtered['totalsales'], label="Sales Ingest") |
Add Legend
1 | plt.legend() |