Skip to content

Commit bb5607f

Browse files
authored
Merge pull request #178 from datacarpentry/ErinBecker-alt-text
Add alt text for three images
2 parents e4b4855 + 1148837 commit bb5607f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

episodes/13-matplotlib.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ df['years_liv'].hist()
6767
~~~
6868
{: .language-python}
6969

70-
![png](../fig/histogram1.png)
70+
![Histogram of years lived spotlighting how to plot a variable with Pandas](../fig/histogram1.png)
7171

7272

7373
We can change the number of bins to make it look how we would like, for example
@@ -88,7 +88,7 @@ df.hist(column='years_liv',by='village',layout=(1,3),figsize=(12,3),sharex=True)
8888
~~~
8989
{: .language-python}
9090

91-
![png](../fig/histogram3.png)
91+
![Three separate histograms depicting the number of years lived by village; Chirodzo, God, Ruaca](../fig/histogram3.png)
9292

9393

9494
## Scatter plot
@@ -176,7 +176,7 @@ We can also draw linear models in a plot using `lmplot()` from `seaborn`, e.g. f
176176
sns.lmplot(x='years_farm', y='years_liv',data=df,hue='village')
177177
~~~
178178
{: .language-python}
179-
![png](../fig/lm1.png)
179+
![Plot showing years lived and years farmed by village to spotlight the use of linear models](../fig/lm1.png)
180180
181181
In general, most graphs can be broken down into a series of elements which, although typically related in some way,
182182
can all exist independently of each other. This allows us to create the graph in a rather piecemeal fashion.

0 commit comments

Comments
 (0)