What is Matplotlib in Data Visualization?
Hello everyone, welcome to Python crash course. Today I am going to Explain What is Matplotlib in Data Visualization? Let's Start:
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, math.pi*2, 0.05)
y = np.sin(x)
plt.plot(x,y)
#You can set the plots title, and labels for x and y axes.plt.xlabel("angle")plt.ylabel("sine")plt.title('sine wave')
plt.show()
from matplotlib import pyplot as pltimport numpy as npimport math #needed for definition of pix = np.arange(0, math.pi*2, 0.05)y = np.sin(x)plt.plot(x,y)plt.xlabel("angle")plt.ylabel("sine")plt.title('sine wave')plt.show()