diff --git a/Data Visualization/Bar Plotting.jpeg b/Data Visualization/Bar Plotting.jpeg new file mode 100644 index 0000000000..c1964b567b Binary files /dev/null and b/Data Visualization/Bar Plotting.jpeg differ diff --git a/Data Visualization/Bar Plotting/program.py b/Data Visualization/Bar Plotting/program.py new file mode 100644 index 0000000000..b773ab3efb --- /dev/null +++ b/Data Visualization/Bar Plotting/program.py @@ -0,0 +1,14 @@ +# importing matplotlib module +from matplotlib import pyplot as plt + +# x-axis values[x1, x2, x3, x4] +x = [5, 2, 9, 4, 7] + +# y-axis values[y1, y2, y3, y4] +y = [10, 5, 8, 4, 2] + +# Functions to plot +plt.bar(x,y) + +#function to show the plot +plt.show() diff --git a/Data Visualization/Histo.png b/Data Visualization/Histo.png new file mode 100644 index 0000000000..f5a1788fc8 Binary files /dev/null and b/Data Visualization/Histo.png differ diff --git a/Data Visualization/Histogram Plotting/program.py b/Data Visualization/Histogram Plotting/program.py new file mode 100644 index 0000000000..6c5469e192 --- /dev/null +++ b/Data Visualization/Histogram Plotting/program.py @@ -0,0 +1,12 @@ +# importing matplotlib module +from matplotlib import pyplot as plt + +# Y axis values + # [y1, y2, y3, y4] +y = [13, 1, 2, 6, 4] + +#Function to plot Histogram +plt.hist(y) + +#Function to show the plot +plt.show() diff --git a/Data Visualization/Line Plotting.jpeg b/Data Visualization/Line Plotting.jpeg new file mode 100644 index 0000000000..ace9c5d39e Binary files /dev/null and b/Data Visualization/Line Plotting.jpeg differ diff --git a/Data Visualization/Line Plotting/program.py b/Data Visualization/Line Plotting/program.py new file mode 100644 index 0000000000..23c9d55b29 --- /dev/null +++ b/Data Visualization/Line Plotting/program.py @@ -0,0 +1,14 @@ +# importing matplotlib module +from matplotlib import pyplot as plt + +# x-axis values[x1, x2, x3, x4] +x = [5, 2, 9, 4, 7] + +# y-axis values[y1, y2, y3, y4] +y = [10, 5, 8, 4, 2] + +# Functions to plot +plt.plot(x,y) + +#function to show the plot +plt.show() diff --git a/Data Visualization/Pie Chart Plotting/program.py b/Data Visualization/Pie Chart Plotting/program.py new file mode 100644 index 0000000000..cabeea4389 --- /dev/null +++ b/Data Visualization/Pie Chart Plotting/program.py @@ -0,0 +1,7 @@ +import matplotlib.pyplot as plt +import numpy as np + +y = np.array([35, 25, 25, 15]) + +plt.pie(y) +plt.show() diff --git a/Data Visualization/Pie.png b/Data Visualization/Pie.png new file mode 100644 index 0000000000..77d5be4bc6 Binary files /dev/null and b/Data Visualization/Pie.png differ diff --git a/Data Visualization/README.md b/Data Visualization/README.md new file mode 100644 index 0000000000..2131a404c3 --- /dev/null +++ b/Data Visualization/README.md @@ -0,0 +1,31 @@ +## Data Visulization + +Data Visualization is the presentation of data in graphical format. It helps people understand the significance of data by summarizing and +presenting huge amount of data in a simple and easy-to-understand format and helps communicate information clearly and effectively. + +## Setup Instruction + +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 +and run the `program.py` file . Sit relax and enjoy Data Visualization Process + + +## Output Line Plotting + + JPEG + +## Output Bar Plotting + + JPEG + +## Output Scatter Plotting + + JPEG + +## Output Histogram Plotting + + PNG + +## Output PieChart Plotting + + PNG + diff --git a/Data Visualization/Scatter Plotting.jpeg b/Data Visualization/Scatter Plotting.jpeg new file mode 100644 index 0000000000..6d6999a379 Binary files /dev/null and b/Data Visualization/Scatter Plotting.jpeg differ diff --git a/Data Visualization/Scatter Plotting/program.py b/Data Visualization/Scatter Plotting/program.py new file mode 100644 index 0000000000..66c7520453 --- /dev/null +++ b/Data Visualization/Scatter Plotting/program.py @@ -0,0 +1,9 @@ +# importing matplotlib module +from matplotlib import pyplot as plt + +plt.plot([1, 2, 3, 4], + [1, 4, 9, 16], 'ro') + +# ro to make red circles +plt.axis([0, 6, 0, 20]) +plt.show()