maps, data and graphs this is what we refer from data visualization by using this, it was quite easy to understand the meaning of data.
Using pyplot we construct 2D plots interactively.
Installation of matplotlib:
open your command prompt run it as administrator,
and type--
pip install matplotlib
TO UPGRADE IT TRY:
-m pip install --upgrade pip
CHART TYPES:
1.Pie Chart
2.Bar Chart
3.Line Chart
A function plot( ) provided by the pyplot to create line graphs.
We set labels for x-axis and y-axis using xlabel( ) and ylabel( ) functions
for example
from matplotlib import pyplot as pl #pl is alias for matplot.pyplot
#Plotting to our canvas
pl.plot([1,3,5],[4,6,1])
plt.show()
To change the line color:
matplotlib.pyplot.plot(data1,data2,color code)
in our next blog we will discuss about bar and pie charts