@@ -200,8 +200,7 @@ records the atmospheric concentration of carbon dioxide
200
200
(CO$_ {\text{2}}$, in parts per million)
201
201
at the Mauna Loa research station in Hawaii
202
202
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.
205
204
206
205
``` {index} question; visualization
207
206
```
@@ -668,9 +667,8 @@ improve readability.
668
667
669
668
``` {code-cell} ipython3
670
669
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)"]),
674
672
y=alt.Y("mother_tongue")
675
673
.scale(zero=False)
676
674
.title(["Mother tongue", "(number of Canadian residents)"])
@@ -746,7 +744,7 @@ the values 1, 10, 100, and 1000 are all the same distance apart!
746
744
So we see that applying this function is moving big values closer together
747
745
and moving small values farther apart.
748
746
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
750
748
the data in such a case, but these are beyond the scope of the book.
751
749
752
750
We can accomplish logarithmic scaling in the ` altair ` visualization
0 commit comments