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
Copy file name to clipboardExpand all lines: docs/src/tutorials/plottingmaps.md
+36-11Lines changed: 36 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,15 +93,19 @@ mesh!(ax, sphere; color = ds'[end:-1:1,:], shading=false,
93
93
colormap = :seaborn_icefire_gradient)
94
94
zoom!(ax.scene, cameracontrols(ax.scene), 0.5)
95
95
rotate!(ax.scene, 2.5)
96
-
fig
96
+
display(fig, update=false)
97
97
````
98
98
99
-
# AlgebraOfGraphics.jl
99
+
## AlgebraOfGraphics.jl
100
+
101
+
::: info
102
+
103
+
From [DimensionalData docs](https://rafaqz.github.io/DimensionalData.jl/stable/plots#algebraofgraphics-jl) :
104
+
105
+
**AlgebraOfGraphics.jl** is a high-level plotting library built on top of `Makie.jl` that provides a declarative algebra for creating complex visualizations, similar to **ggplot2**'s "grammar of graphics" in R. It allows you to construct plots using algebraic operations like `*` and `+`, making it easy to create sophisticated graphics with minimal code.
106
+
107
+
:::
100
108
101
-
> [!NOTE]
102
-
> From [DimensionalData docs](https://rafaqz.github.io/DimensionalData.jl/stable/plots#algebraofgraphics-jl) :
103
-
>
104
-
> **AlgebraOfGraphics.jl** is a high-level plotting library built on top of Makie.jl that provides a declarative algebra for creating complex visualizations, similar to **ggplot2**'s "grammar of graphics" in R. It allows you to construct plots using algebraic operations like **(*)** and **(+)**, making it easy to create sophisticated graphics with minimal code.
105
109
106
110
````@example AoG
107
111
using YAXArrays, Zarr, Dates
@@ -116,13 +120,15 @@ let's continue using the cmip6 dataset
116
120
````@example AoG
117
121
store ="gs://cmip6/CMIP6/ScenarioMIP/DKRZ/MPI-ESM1-2-HR/ssp585/r1i1p1f1/3hr/tas/gn/v20190710/"
118
122
g = open_dataset(zopen(store, consolidated=true))
119
-
c = g["tas"]
123
+
c = g["tas"];
124
+
nothing # hide
120
125
````
121
126
122
127
and let's focus on the first time step:
123
128
124
129
````@example AoG
125
-
dim_data = readcubedata(c[time=1]) # read into memory first!
130
+
dim_data = readcubedata(c[time=1]); # read into memory first!
Note that we are using a `Scatter` type per point and not the `Heatmap` one. There are workarounds for this, albeit cumbersome, so for now, let's keep this simpler syntax in mind along with the current approach being used.
0 commit comments