class - matplotlib

 

 


Usage

 

# Save image

code.py

from matplotlib import pyplot as plt

plt.figure(figsize=(20,10))
plt.ylabel('Pricing')
plt.xlabel('Day')
plt.grid(linestyle='--', color='pink')
...
plt.savefig('foo.png')

plt.figure(figsize=(20,10))

  • figure(): Create a new figure
  • figsize: Width, height in inches