Skip to content

Commit c63e165

Browse files
authored
Merge pull request microsoft#305 from flegaspi700/main
updated PNG files with 'white' background.
2 parents 0b7ab66 + ded458a commit c63e165

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

3-Data-Visualization/09-visualization-quantities/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Let's start by plotting some of the numeric data using a basic line plot. Suppos
5252
wingspan = birds['MaxWingspan']
5353
wingspan.plot()
5454
```
55-
![Max Wingspan](images/max-wingspan.png)
55+
![Max Wingspan](images/max-wingspan-02.png)
5656

5757
What do you notice immediately? There seems to be at least one outlier - that's quite a wingspan! A 2300 centimeter wingspan equals 23 meters - are there Pterodactyls roaming Minnesota? Let's investigate.
5858

@@ -72,7 +72,7 @@ plt.plot(x, y)
7272
7373
plt.show()
7474
```
75-
![wingspan with labels](images/max-wingspan-labels.png)
75+
![wingspan with labels](images/max-wingspan-labels-02.png)
7676

7777
Even with the rotation of the labels set to 45 degrees, there are too many to read. Let's try a different strategy: label only those outliers and set the labels within the chart. You can use a scatter chart to make more room for the labeling:
7878

@@ -94,7 +94,7 @@ What's going on here? You used `tick_params` to hide the bottom labels and then
9494

9595
What did you discover?
9696

97-
![outliers](images/labeled-wingspan.png)
97+
![outliers](images/labeled-wingspan-02.png)
9898
## Filter your data
9999

100100
Both the Bald Eagle and the Prairie Falcon, while probably very large birds, appear to be mislabeled, with an extra `0` added to their maximum wingspan. It's unlikely that you'll meet a Bald Eagle with a 25 meter wingspan, but if so, please let us know! Let's create a new dataframe without those two outliers:
@@ -114,7 +114,7 @@ plt.show()
114114

115115
By filtering out outliers, your data is now more cohesive and understandable.
116116

117-
![scatterplot of wingspans](images/scatterplot-wingspan.png)
117+
![scatterplot of wingspans](images/scatterplot-wingspan-02.png)
118118

119119
Now that we have a cleaner dataset at least in terms of wingspan, let's discover more about these birds.
120120

@@ -140,7 +140,7 @@ birds.plot(x='Category',
140140
title='Birds of Minnesota')
141141

142142
```
143-
![full data as a bar chart](images/full-data-bar.png)
143+
![full data as a bar chart](images/full-data-bar-02.png)
144144

145145
This bar chart, however, is unreadable because there is too much non-grouped data. You need to select only the data that you want to plot, so let's look at the length of birds based on their category.
146146

@@ -155,7 +155,7 @@ category_count = birds.value_counts(birds['Category'].values, sort=True)
155155
plt.rcParams['figure.figsize'] = [6, 12]
156156
category_count.plot.barh()
157157
```
158-
![category and length](images/category-counts.png)
158+
![category and length](images/category-counts-02.png)
159159

160160
This bar chart shows a good view of the number of birds in each category. In a blink of an eye, you see that the largest number of birds in this region are in the Ducks/Geese/Waterfowl category. Minnesota is the 'land of 10,000 lakes' so this isn't surprising!
161161

@@ -171,7 +171,7 @@ plt.barh(y=birds['Category'], width=maxlength)
171171
plt.rcParams['figure.figsize'] = [6, 12]
172172
plt.show()
173173
```
174-
![comparing data](images/category-length.png)
174+
![comparing data](images/category-length-02.png)
175175

176176
Nothing is surprising here: hummingbirds have the least MaxLength compared to Pelicans or Geese. It's good when data makes logical sense!
177177

@@ -189,7 +189,7 @@ plt.show()
189189
```
190190
In this plot, you can see the range per bird category of the Minimum Length and Maximum length. You can safely say that, given this data, the bigger the bird, the larger its length range. Fascinating!
191191

192-
![superimposed values](images/superimposed.png)
192+
![superimposed values](images/superimposed-02.png)
193193

194194
## 🚀 Challenge
195195

71.6 KB
Loading
71.7 KB
Loading
56.1 KB
Loading
11.9 KB
Loading
10.9 KB
Loading
62.5 KB
Loading
14.4 KB
Loading
72.2 KB
Loading

0 commit comments

Comments
 (0)