PYPLOT and DATA VISUALISATION








A graphical or visual representation of information and data using 
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

About the Author

Sarkun is a dedicated research student at one of India's premier institutions, the Indian Institute of Science Education and Research (IISER). With over three years of experience in the realm of blogging, Sarkun's passion lies at the interse…

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.