METPLOT-LIBRARY(matplotlib)
METPLOT-LIBRARY(matplotlib)
Matplotlib
it is a plotting library for the python programming language and its numerical
mathematics
extension
numpy
Installation of Matplotlib
If python is already installed on you system then installing matplotlib is equity
easy . matelot library is installed import it in your application by adding the
import module statement that this import matplotlib
pyplot
Most pof the marplot library unicity is lies under the pie plot submodule , and
usually imported under the plt alias
(import matplotlib.pyplot) as plt
Now the pie pleat package can be refired to as plt for
example drow a line in a diagram for
xcoordinate =np.array([0,10])
ycoordinate =np.array([0,100)]
plt.plot(xcordinate, ycordinate)
plt.show()
xcoordinate = np.array([1,8])
ycoordinate = np.array([3,25])
plt.plot(xcoordinate , ycoordinate)
plt.show()
xpoint=np.array([0,1,2,3,4])
ypoint=np.array([4,6,8,7,11])
plt.plot(xpoint,ypoint)
plt.show()