Professional Documents
Culture Documents
REPRESENTATION OF DIFFERENT
DATA SETS IN DIFFERENT
GRAPHICAL FORMATS
ANKIT
X-N
3
(Affiliated to Central Board of Secondary Education, New Delhi)
(Chettinad House, R.A. Puram, Chennai – 600 028)
Date: Teacher-in-charge
REGISTER NO.
600 028.
1 Overview 5
2 Project Description 6
3 Programs 7
4 Outputs 12
5 Bibliography 17
Project Overview
Matplotlib
Matplotlib is a visualization library in Python for 2D plots of arrays. It is a
multi-platform data visualization library built on NumPy arrays. One of
the greatest benefits of visualization is that it allows us visual access to
huge amounts of data in easily digestible visuals.
Applications of matplotlib
Installation
Implementation
1. Pie-chart
2. Histogram
3. Line graph
4. Bar graph
5. Scatter plot
plt.show()
x=[2009,2010,2011,2012,2013,2014,2015]
y=[0.039,0.048,0.054,0.047,0.052,0.042,0.051]
plt.plot(x,y,'g*-')
plt.grid(True)
plt.ylabel("Valuation in Billions")
plt.xlabel("Years")
plt.ylim(0.01,0.08)
plt.title("Brand Value(CSK)")
plt.show()
x=['2014','2015','2018','2019','2020','2021','2022']
y=[9,9,9,9,6,9,4]
plt.plot(x,y,'go')
plt.ylabel("Wins")
plt.xlabel("Year")
plt.title("CSK Year Wise wins - ")
plt.grid(True)
plt.show()
plt.ylabel("Runs")
plt.xlabel("Year")
plt.title("Runs Scored by MS Dhoni in last 4 years")
plt.legend()
plt.show()
OUTPUT 1
OUTPUT 2
OUTPUT 3
OUTPUT 4
OUTPUT 5
Bibliography