Skip to content

Commit 358d8b0

Browse files
authored
Update matplotlib-introduction.md
1 parent 0d420ef commit 358d8b0

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

contrib/plotting-visualization/matplotlib-introduction.md

+9-21
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ To make this process of data visualization easier and clearer, matplotlib librar
1212

1313
## Starting with Matplotlib
1414

15-
### 1.] Install and import the neccasary libraries - mayplotlib.pylplot
16-
```python
15+
### 1. Install and import the neccasary libraries - mayplotlib.pylplot
16+
17+
```bash
1718
pip install matplotlib
1819
```
1920

@@ -22,9 +23,7 @@ import maptplotlib.pyplot as plt
2223
import numpy as np
2324
```
2425

25-
26-
27-
### 2.] Scatter plot
26+
### 2. Scatter plot
2827
Scatter plot is a type of plot that uses the cartesian coordinates between x and y to describe the relation between them. It uses dots to represent relation between the data variables of the data set.
2928

3029
```python
@@ -41,12 +40,9 @@ plt.tight_layout()
4140
plt.show()
4241
```
4342

43+
![scatterplot](images/scatterplot.png)
4444

45-
46-
![scatterplot](https://github.com/Harshita297/learn-python/assets/122027571/aa57eb31-4377-4f75-9a97-e4fa7a54a938)
47-
48-
49-
### 3.] Bar plot
45+
### 3. Bar plot
5046
Bar plot is a type of plot that plots the frequency distrubution of the categorical variables. Each entity of the categoric variable is represented as a bar. The size of the bar represents its numeric value.
5147

5248
```python
@@ -61,11 +57,10 @@ plt.ylabel("Y values")
6157

6258
plt.show()
6359
```
64-
![barplot](https://github.com/Harshita297/learn-python/assets/122027571/00cea3cd-a962-4bfe-b158-921389ee564c)
65-
6660

61+
![barplot](images/barplot.png)
6762

68-
### 4.] Histogram
63+
### 4. Histogram
6964
Histogram is the representation of frequency distribution of qualitative data. The height of each rectangle defines the amount, or how often that variable appears.
7065

7166
```python
@@ -79,14 +74,7 @@ plt.ylabel("Frequency Distribution")
7974

8075
plt.show()
8176
```
82-
![histogram](https://github.com/Harshita297/learn-python/assets/122027571/32470819-bac5-4bb2-9f36-79521fa40bf3)
83-
84-
85-
86-
87-
88-
89-
9077

78+
![histogram](images/histogram.png)
9179

9280

0 commit comments

Comments
 (0)