@@ -134,7 +134,7 @@ nothing # hide
134134and now plot
135135
136136```` @example AoG
137- data(dim_data) * mapping(:lon, :lat; color=:value ) * visual(Scatter) |> draw
137+ data(dim_data) * mapping(:lon, :lat; color=Symbol("Near-Surface Air Temperature") ) * visual(Scatter) |> draw
138138````
139139
140140::: warning
@@ -146,7 +146,7 @@ Note that we are using a `Scatter` type per point and not the `Heatmap` one. The
146146set other attributes
147147
148148```` @example AoG
149- plt = data(dim_data) * mapping(:lon, :lat; color=:value )
149+ plt = data(dim_data) * mapping(:lon, :lat; color=Symbol("Near-Surface Air Temperature") )
150150draw(plt * visual(Scatter, marker=:rect), scales(Color = (; colormap = :plasma));
151151 axis = (width = 600, height = 400, limits=(0, 360, -90, 90)))
152152````
@@ -166,14 +166,15 @@ nothing # hide
166166````
167167
168168```` @example AoG
169- plt = data(dim_time) * mapping(:lon, :lat; color = :value , layout = :time => nonnumeric)
169+ plt = data(dim_time) * mapping(:lon, :lat; color=Symbol("Near-Surface Air Temperature") , layout = :time => nonnumeric)
170170draw(plt * visual(Scatter, marker=:rect))
171171````
172172
173173again, let's add some additional attributes
174174
175175```` @example AoG
176- plt = data(dim_time) * mapping(:lon, :lat; color = :value, layout = :time => nonnumeric)
176+ plt = data(dim_time) * mapping(:lon, :lat; color=Symbol("Near-Surface Air Temperature"),
177+ layout = :time => nonnumeric)
177178draw(plt * visual(Scatter, marker=:rect), scales(Color = (; colormap = :magma));
178179 axis = (; limits=(0, 360, -90, 90)),
179180 figure=(; size=(900,600)))
@@ -182,14 +183,16 @@ draw(plt * visual(Scatter, marker=:rect), scales(Color = (; colormap = :magma));
182183most [ Makie plot functions] ( https://docs.makie.org/stable/reference/plots/overview ) should work. See ` lines ` for example
183184
184185```` @example AoG
185- plt = data(dim_data[lon=50..100]) * mapping(:lat, :value => "tas"; color=:value => "tas")
186+ plt = data(dim_data[lon=50..100]) * mapping(:lat, Symbol("Near-Surface Air Temperature") => "tas";
187+ color=Symbol("Near-Surface Air Temperature") => "tas")
186188draw(plt * visual(Lines); figure=(; size=(650,400)))
187189````
188190
189191or faceting them
190192
191193```` @example AoG
192- plt = data(dim_data[lon=50..59]) * mapping(:lat, :value => "tas"; color=:value => "tas",
194+ plt = data(dim_data[lon=50..59]) * mapping(:lat, Symbol("Near-Surface Air Temperature") => "tas";
195+ color=Symbol("Near-Surface Air Temperature") => "tas",
193196 layout = :lon => nonnumeric)
194197draw(plt * visual(Lines); figure=(; size=(650,400)))
195198````
@@ -204,7 +207,7 @@ dim_series = c[time=DateTime("2015-01-01") .. DateTime("2015-01-04"), lon = 150
204207and plot
205208
206209```` @example AoG
207- plt = data(dim_series) * mapping(:time, :value => "tas"; color=:lon => nonnumeric)
210+ plt = data(dim_series) * mapping(:time, Symbol("Near-Surface Air Temperature") => "tas"; color=:lon => nonnumeric)
208211draw(plt * visual(ScatterLines), scales(Color = (; palette = :tableau_colorblind));
209212 figure=(; size=(800,400)))
210213````
@@ -214,7 +217,7 @@ draw(plt * visual(ScatterLines), scales(Color = (; palette = :tableau_colorblind
214217Basic statistical [ analysis] ( https://aog.makie.org/stable/generated/analyses/ ) can also be done, for example:
215218
216219```` @example AoG
217- specs = data(dim_data[lat=50..55]) * mapping(:lon, :value => "tas"; color=:lat => nonnumeric)
220+ specs = data(dim_data[lat=50..55]) * mapping(:lon, Symbol("Near-Surface Air Temperature") => "tas"; color=:lat => nonnumeric)
218221specs *= (smooth() + visual(Scatter))
219222draw(specs; figure=(; size=(700,400)))
220223````
0 commit comments