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
1. Ask the web-search or AI how to change the axis title from "precipitation"
265
+
1. Ask the Internet or AI how to change the axis title from "precipitation"
242
266
to "Precipitation (mm)".
243
267
244
268
1. Modify the temperature range plot to show the temperature ranges for the
@@ -292,7 +316,7 @@ Monthly temperature ranges for two cities in Norway.
292
316
::::
293
317
294
318
295
-
## Using visual channels
319
+
## More fun with visual channels
296
320
297
321
Now we will try to **plot the daily data and look at snow depths**. We first
298
322
read and concatenate two datasets:
@@ -372,10 +396,24 @@ With the following result:
372
396
Snow depth (in cm) for the months December 2022 to May 2023 for two cities in Norway. Colored by daily max temperature. Warmer days are often followed by reduced snow depth.
373
397
:::
374
398
375
-
:::{discussion} What other marks and other visual channels exist?
376
-
-[Overview of available marks](https://altair-viz.github.io/user_guide/marks/index.html)
377
-
-[Overview of available visual channels](https://altair-viz.github.io/user_guide/encodings/channels.html)
378
-
-[Gallery of examples](https://altair-viz.github.io/gallery/index.html)
399
+
Let's try one more change to show that we can experiment with different
400
+
plot types by changing `mark_bar()` to something else, in this case `mark_circle()`:
:alt: Snow depth (in cm) for the months December 2022 to May 2023 for two cities in Norway. Colored by daily max temperature. Warmer days are often followed by reduced snow depth.
415
+
416
+
Snow depth (in cm) for the months December 2022 to May 2023 for two cities in Norway. Colored by daily max temperature. Warmer days are often followed by reduced snow depth.
379
417
:::
380
418
381
419
@@ -404,7 +442,6 @@ remember everything so this strategy is useful to practice:
404
442
- Select an example that is close to what you have in mind
405
443
- Being able to adapt it to your needs
406
444
- Being able to search for help
407
-
- Being able to understand help request answers (not easy)
408
445
409
446
::::{exercise} Plotting-2: Adapting a gallery example
410
447
**This is a great exercise which is very close to real life.**
@@ -421,7 +458,7 @@ remember everything so this strategy is useful to practice:
0 commit comments