Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
f045b4fc43
@ -73,7 +73,7 @@ website:
|
||||
text: "🛠 1 - Docs: Exercises"
|
||||
- href: material/3_wed/vis/handout.qmd
|
||||
text: "📝 2 - Visualizations: Handout"
|
||||
- href: material/3_wed/vis/tasks.qmd"
|
||||
- href: material/3_wed/vis/tasks.qmd
|
||||
text: "🛠 2 - Visualizations: Exercises"
|
||||
- href: material/3_wed/linalg/slides.qmd
|
||||
text: "📝 3 - LinearAlgebra"
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
## Backends
|
||||
Four backends:
|
||||
|
||||
1. `CairoMakie` - SVG
|
||||
2. `GLMakie` - 2D/3D/fast interactivity
|
||||
3. `WGLMakie` - Same as GLMakie, but in browser
|
||||
|
1726
material/3_wed/vis/nb_plutoCummean.jl
Normal file
1726
material/3_wed/vis/nb_plutoCummean.jl
Normal file
File diff suppressed because it is too large
Load Diff
@ -60,7 +60,7 @@ Note that there is no `cummean` function, but clever element-wise division in co
|
||||
:::
|
||||
|
||||
## 3. Plotting!
|
||||
Now for your first plot. Use a `scatter` plot to visualize the cummulative mean output, if you do not generate a `Figure()` + `ax = f[1,1] = Axis(f)` manually, you can get it back by the scatter call. `f,ax,s = scatter()`. This is helpful as we later want to extend the `Axis` and `Figure` with other plot elements
|
||||
Now for your first plot. Use a `scatter` plot^[after a `using CairoMakie`] to visualize the cummulative mean output, if you do not generate a `Figure()` + `ax = f[1,1] = Axis(f)` manually, you can get it back by the scatter call. `f,ax,s = scatter()`. This is helpful as we later want to extend the `Axis` and `Figure` with other plot elements
|
||||
|
||||
Use `hlines!` to add a horizontal line at your "true" value
|
||||
|
||||
@ -70,7 +70,7 @@ Let's simulate 1000x datasets, each with a different seed, and take the mean ov
|
||||
|
||||
::: {.callout-tip collapse="true"}
|
||||
## click to show tip
|
||||
An easy way to call a function many times is to broadcast it on an array e.g. `1:1000` - you could also use `map` to do it, but I don't think it is as clear :)
|
||||
An easy way to call a function many times is to broadcast it on an array created e.g. via `1:1000` - you could also use `map` to do it, but I don't think it is as clear :)
|
||||
:::
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user