Skip to content

Commit 9601ff4

Browse files
Merge pull request avinashkranjan#301 from Ayush7614/master
Data Visualization
2 parents 3b0d3f0 + 5ff1f5b commit 9601ff4

File tree

11 files changed

+87
-0
lines changed

11 files changed

+87
-0
lines changed
57.3 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# importing matplotlib module
2+
from matplotlib import pyplot as plt
3+
4+
# x-axis values[x1, x2, x3, x4]
5+
x = [5, 2, 9, 4, 7]
6+
7+
# y-axis values[y1, y2, y3, y4]
8+
y = [10, 5, 8, 4, 2]
9+
10+
# Functions to plot
11+
plt.bar(x,y)
12+
13+
#function to show the plot
14+
plt.show()

Data Visualization/Histo.png

13.6 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# importing matplotlib module
2+
from matplotlib import pyplot as plt
3+
4+
# Y axis values
5+
# [y1, y2, y3, y4]
6+
y = [13, 1, 2, 6, 4]
7+
8+
#Function to plot Histogram
9+
plt.hist(y)
10+
11+
#Function to show the plot
12+
plt.show()
84.2 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# importing matplotlib module
2+
from matplotlib import pyplot as plt
3+
4+
# x-axis values[x1, x2, x3, x4]
5+
x = [5, 2, 9, 4, 7]
6+
7+
# y-axis values[y1, y2, y3, y4]
8+
y = [10, 5, 8, 4, 2]
9+
10+
# Functions to plot
11+
plt.plot(x,y)
12+
13+
#function to show the plot
14+
plt.show()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import matplotlib.pyplot as plt
2+
import numpy as np
3+
4+
y = np.array([35, 25, 25, 15])
5+
6+
plt.pie(y)
7+
plt.show()

Data Visualization/Pie.png

20.3 KB
Loading

Data Visualization/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Data Visulization
2+
3+
Data Visualization is the presentation of data in graphical format. It helps people understand the significance of data by summarizing and
4+
presenting huge amount of data in a simple and easy-to-understand format and helps communicate information clearly and effectively.
5+
6+
## Setup Instruction
7+
8+
First Open the terminal and write `pip install matplotlib` this will install required package then after make file `program.py` and take any one program out of three and write it
9+
and run the `program.py` file . Sit relax and enjoy Data Visualization Process
10+
11+
12+
## Output Line Plotting
13+
14+
<img align="center" alt="JPEG" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Data%20Visualization/Line%20Plotting.jpeg" width="500" height="500" />
15+
16+
## Output Bar Plotting
17+
18+
<img align="center" alt="JPEG" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Data%20Visualization/Bar%20Plotting.jpeg" width="500" height="500" />
19+
20+
## Output Scatter Plotting
21+
22+
<img align="center" alt="JPEG" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Data%20Visualization/Scatter%20Plotting.jpeg" width="500" height="500" />
23+
24+
## Output Histogram Plotting
25+
26+
<img align="center" alt="PNG" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Data%20Visualization/Histo.png" width="500" height="500" />
27+
28+
## Output PieChart Plotting
29+
30+
<img align="center" alt="PNG" src="https://github.com/Ayush7614/Amazing-Python-Scripts/blob/master/Data%20Visualization/Pie.png" width="500" height="500" />
31+
28.3 KB
Loading

0 commit comments

Comments
 (0)