Skip to content

Commit edca792

Browse files
committed
fix typo
1 parent faa6fa7 commit edca792

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/src/tutorials/plottingmaps.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fig
5050
Some transformations
5151

5252
````@example plots
53-
δlon = (lon_d[2]-_lon_d[1])/2
53+
δlon = (lon_d[2] - lon_d[1])/2
5454
nlon = lon_d .- 180 .+ δlon
5555
ndata = circshift(data_d, (192,1))
5656
nothing # hide
@@ -170,6 +170,13 @@ draw(plt * visual(Scatter, marker=:rect), scales(Color = (; colormap = :magma));
170170
most [Makie plot functions](https://docs.makie.org/stable/reference/plots/overview) should work. See `lines` for example
171171

172172
````@example AoG
173-
plt = data(dim_data[lon=1..10]) * mapping(:lat, :value; layout = :lon => nonnumeric)
174-
draw(plt * visual(Lines); figure=(; size=(600,400)))
173+
plt = data(dim_data[lon=50..100]) * mapping(:lat, :value => "tas"; color=:value => "tas")
174+
draw(plt * visual(Lines); figure=(; size=(650,400)))
175+
````
176+
177+
or faceting them
178+
179+
````@example AoG
180+
plt = data(dim_data[lon=50..59]) * mapping(:lat, :value => "tas"; color=:value => "tas", layout = :lon => nonnumeric)
181+
draw(plt * visual(Lines); figure=(; size=(650,400)))
175182
````

0 commit comments

Comments
 (0)