Skip to content

Commit 3efe492

Browse files
ch4 bug hunt py issue
1 parent 681d304 commit 3efe492

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/viz.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ records the atmospheric concentration of carbon dioxide
200200
(CO$_{\text{2}}$, in parts per million)
201201
at the Mauna Loa research station in Hawaii
202202
from 1959 onward {cite:p}`maunadata`.
203-
For this book, we are going to focus on the last 40 years of the data set,
204-
1980-2020.
203+
For this book, we are going to focus on the years 1980-2020.
205204

206205
```{index} question; visualization
207206
```
@@ -668,9 +667,8 @@ improve readability.
668667

669668
```{code-cell} ipython3
670669
can_lang_plot_labels = alt.Chart(can_lang).mark_circle().encode(
671-
x=alt.X("most_at_home").title(
672-
["Language spoken most at home", "(number of Canadian residents)"]
673-
),
670+
x=alt.X("most_at_home")
671+
.title(["Language spoken most at home", "(number of Canadian residents)"]),
674672
y=alt.Y("mother_tongue")
675673
.scale(zero=False)
676674
.title(["Mother tongue", "(number of Canadian residents)"])
@@ -746,7 +744,7 @@ the values 1, 10, 100, and 1000 are all the same distance apart!
746744
So we see that applying this function is moving big values closer together
747745
and moving small values farther apart.
748746
Note that if your data can take the value 0, logarithmic scaling may not
749-
be appropriate (since `log10(0) = -inf` in Python). There are other ways to transform
747+
be appropriate (since `log10(0)` is `-inf` in Python). There are other ways to transform
750748
the data in such a case, but these are beyond the scope of the book.
751749

752750
We can accomplish logarithmic scaling in the `altair` visualization

0 commit comments

Comments
 (0)