You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/data-visualization/next-steps.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,5 @@ hidden = false
9
9
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:
10
10
11
11
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
Copy file name to clipboardExpand all lines: content/data-visualization/reading/vizzes-with-python/_index.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,6 @@ However, if you are running your code in an environment like a Jupyter notebook,
25
25
26
26
## Bar Charts and Column Charts
27
27
28
-
### Matplotlib
29
-
30
28
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.
31
29
32
30
Let's revisit the plant nursery.
@@ -42,8 +40,6 @@ The above code would create a column chart that has three different citrus trees
42
40
43
41
## Scatterplots
44
42
45
-
### Matplotlib
46
-
47
43
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.
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.
61
55
62
56
```python {linenos=table}
@@ -67,21 +61,15 @@ plt.hist(butterflies, bins=8)
67
61
68
62
## Pie Charts
69
63
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.
The `labels` parameter specifies what each slice of the pie chart should be called.
82
74
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.
0 commit comments