Skip to content

Commit f7cbfd2

Browse files
authored
Episodes 2, 4, 6, 10: Improving image descriptions (#922)
* Episode 2: improving image descriptions (issue #781) - Description suggestion for the 'python-zero-index.svg' figure. * Episode 4: improving image descriptions (issue #781) - Description suggestion for the '03-loop_2_0.png' figure. * Episode 6: improving image descriptions (issue #781) - Add description suggestion for the second and third iterations of the 'for loop' output figures. * Episode 10: improving image descriptions (issue #781) - Add description suggestion for 'python-overlapping-ranges' figure. * Fix long lines * Episode 2: Changes requested to #922. - Modify alt-text in 'python-zero-index.svg' to match suggestions from #844.
1 parent 718c24e commit f7cbfd2

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

_episodes/02-numpy.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ It takes a bit of getting used to,
233233
but one way to remember the rule is that
234234
the index is how many steps we have to take from the start to get the item we want.
235235
236-
![Zero Index](../fig/python-zero-index.svg)
236+
!["data" is a 3 by 3 numpy array containing row 0: ['A', 'B', 'C'], row 1: ['D', 'E', 'F'], and
237+
row 2: ['G', 'H', 'I']. Starting in the upper left hand corner, data[0, 0] = 'A', data[0, 1] = 'B',
238+
data[0, 2] = 'C', data[1, 0] = 'D', data[1, 1] = 'E', data[1, 2] = 'F', data[2, 0] = 'G',
239+
data[2, 1] = 'H', and data[2, 2] = 'I',
240+
in the bottom right hand corner.](../fig/python-zero-index.svg)
237241
238242
> ## In the Corner
239243
>

_episodes/04-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keypoints:
1818
In the last episode, we wrote Python code that plots values of interest from our first
1919
inflammation dataset (`inflammation-01.csv`), which revealed some suspicious features in it.
2020

21-
![Analysis of inflammation-01.csv](../fig/03-loop_2_0.png)
21+
![Line graphs showing average, maximum and minimum inflammation across all patients over a 40-day period.](../fig/03-loop_2_0.png)
2222

2323
We have a dozen data sets right now, though, and more on the way.
2424
We want to create plots for all of our data sets with a single statement.

_episodes/06-files.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,26 @@ inflammation-01.csv
8686
{: .output}
8787

8888
![Output from the first iteration of the for loop. Three line graphs showing the daily average,
89-
maximum and minimum inflammation over a 40-day period for the patients in inflammation-01.csv.](
89+
maximum and minimum inflammation over a 40-day period for all patients in the first dataset.](
9090
../fig/03-loop_49_1.png)
9191

9292
~~~
9393
inflammation-02.csv
9494
~~~
9595
{: .output}
9696

97-
![Analysis of inflammation-02.csv](../fig/03-loop_49_3.png)
97+
![Output from the second iteration of the for loop. Three line graphs showing the daily average,
98+
maximum and minimum inflammation over a 40-day period for all patients in the second
99+
dataset.](../fig/03-loop_49_3.png)
98100

99101
~~~
100102
inflammation-03.csv
101103
~~~
102104
{: .output}
103105

104-
![Analysis of inflammation-03.csv](../fig/03-loop_49_5.png)
106+
![Output from the third iteration of the for loop. Three line graphs showing the daily average,
107+
maximum and minimum inflammation over a 40-day period for all patients in the third
108+
dataset.](../fig/03-loop_49_5.png)
105109

106110
Sure enough,
107111
the maxima of the first two data sets show exactly the same ramp as the first,

_episodes/10-defensive.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ The range of each time series is represented as a pair of numbers,
277277
which are the time the interval started and ended.
278278
The output is the largest range that they all include:
279279

280-
![Overlapping Ranges](../fig/python-overlapping-ranges.svg)
280+
![Graph showing three number lines and, at the bottom,
281+
the interval that they overlap.](../fig/python-overlapping-ranges.svg)
281282

282283
Most novice programmers would solve this problem like this:
283284

0 commit comments

Comments
 (0)