Skip to content

Commit 3a5d964

Browse files
Merge pull request #168 from LaunchCodeEducation/audit-data-viz
Audit for data viz
2 parents 05ae884 + ed5eb91 commit 3a5d964

File tree

5 files changed

+14
-26
lines changed

5 files changed

+14
-26
lines changed

content/data-visualization/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Here is a list of key terms for this chapter, broken down by the page the term f
3333
1. composition chart
3434

3535

36-
### Matplotlib and Seaborn
36+
### Matplotlib
3737

3838
1. bins
3939

content/data-visualization/next-steps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ hidden = false
99
Next we will be learning how to use pandas with a sqlite3 database. Before continuing on, here are some of our favorite additional resources on data visualization in Python:
1010

1111
1. [Johns Hopkins' Data Visualization Guides](https://guides.library.jhu.edu/datavisualization/design)
12+
1. [Matplotlib Official Tutorial](https://matplotlib.org/stable/tutorials/index.html)
13+
1. [Python Graph Gallery](https://python-graph-gallery.com/) - Examples of different chart types with code

content/data-visualization/reading/chart-styles/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ Pie charts are some of the most commonly-used composition charts. Pie charts sho
6363

6464
{{% notice green Question %}}
6565

66-
Match each chart style to its purpose.
66+
The following table shows incorrect matches between chart styles and their purposes. Provide the correct purpose for each chart style.
6767

68-
| Chart Style | Purpose |
69-
|-------------|---------|
70-
| Pie chart | Comparison |
71-
| Scatterplot | Composition |
72-
| Bar chart | Relationship |
68+
| Chart Style | Incorrect Purpose | Correct Purpose |
69+
|-------------|-------------------|-----------------|
70+
| Pie chart | Comparison | ? |
71+
| Scatterplot | Composition | ? |
72+
| Bar chart | Relationship | ? |
7373

7474
{{% /notice %}}
7575

content/data-visualization/reading/vizzes-with-python/_index.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ However, if you are running your code in an environment like a Jupyter notebook,
2525

2626
## Bar Charts and Column Charts
2727

28-
### Matplotlib
29-
3028
For column charts, you will need to use `bar()` method and for bar charts, you will need to use the `barh()` method. Both methods have similar parameters so once you master one, it will be simpler to master the other one.
3129

3230
Let's revisit the plant nursery.
@@ -42,8 +40,6 @@ The above code would create a column chart that has three different citrus trees
4240

4341
## Scatterplots
4442

45-
### Matplotlib
46-
4743
We can use the `scatter()` method to put together a scatterplot in Matplotlib and finally see if there is a relationship between the butterfly population and the number of participants in the pollinator planting program.
4844

4945
```python {linenos=table}
@@ -55,8 +51,6 @@ plt.scatter(pollinator_participants, butterflies)
5551

5652
## Histograms
5753

58-
### Matplotlib
59-
6054
Let's use histograms to better understand the butterfly population at the nursery. When we chart a histogram, we need to decide on the bin size. **Bins** are the columns in a histogram. If someone counted the number of butterflies every week for 8 weeks, then it makes sense for us to have 8 bins.
6155

6256
```python {linenos=table}
@@ -67,21 +61,15 @@ plt.hist(butterflies, bins=8)
6761

6862
## Pie Charts
6963

70-
### MatplotLib
71-
72-
Finally, let's explore how we can use these Python libraries to make pie charts. If we needed to create a visualization breaking down the nursery sales by plant category, we could use the `pie()` method in Matplotlib.
64+
Finally, let's explore how we can use Matplotlib to make pie charts. If we needed to create a visualization breaking down the nursery sales by plant category, we could use the `pie()` method in Matplotlib.
7365

7466
```python {linenos=table}
75-
categories = ["annuals", "perenials", "trees", "houseplants"]
67+
categories = ["annuals", "perennials", "trees", "houseplants"]
7668
sales = [678, 1894, 1234, 768]
7769

7870
plt.pie(sales,labels=categories)
7971
```
8072

8173
The `labels` parameter specifies what each slice of the pie chart should be called.
8274

83-
### Seaborn
84-
85-
As we mentioned on the previous page, not everyone likes pie charts and Seaborn is no exception. Seaborn does not come with a pie chart method.
86-
87-
As you explore making visualizations in Python, we suggest bookmarking both the [Matplotlib documentation](https://matplotlib.org/stable/index.html) This documentation comes with lots of examples of how you can properly use the multitude of parameters that come with each of the above methods.
75+
As you explore making visualizations in Python, we suggest bookmarking the [Matplotlib documentation](https://matplotlib.org/stable/index.html). This documentation comes with lots of examples of how you can properly use the multitude of parameters that come with each of the above methods.

content/data-visualization/studio/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ Some publishers' names are in non-Latin scripts, such as Japanese and Russian. M
4444

4545
## Create Your Visualizations
4646

47-
Once you have your group, everyone in the group needs to make **two** visualizations:
47+
Once you have your group, everyone in the group needs to make **two** visualizations using Matplotlib:
4848

49-
1. One made using Matplotlib.
50-
1. One made using Seaborn.
51-
1. These visualizations can be of any chart type.
49+
1. Each visualization should use a different chart type.
5250
1. Make sure that everyone is doing something different!
5351

5452
## Share with Your Group

0 commit comments

Comments
 (0)