Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

Online Matplotlib Compiler

import matplotlib.pyplot as plt import numpy as np x = np.arange(0, 3 * np.pi, 0.1) y = np.sin(x) plt.plot(x, y) plt.show()