HOME/Articles/

matplotlib example plot (snippet)

Article Outline

Python matplotlib example 'plot'

Modules used in program:

  • import matplotlib.pyplot as plt

python plot

Python matplotlib example: plot

import matplotlib.pyplot as plt

fig = plt.figure(figsize=(10,10))
ax = fig.add_axes([0.2,0.2,0.7,0.7])
ax.plot()
# ax.set_ylim()
# ax.set_xlim()
# ax.legend()
ax.set_xlabel('',fontsize=15)
ax.set_ylabel('',fontsize=15)