From b17e1a85fcf354cdd15a17bd4b36040aea843e3d Mon Sep 17 00:00:00 2001 From: Nathanael Wong Date: Wed, 22 Nov 2023 03:12:46 -0500 Subject: [PATCH] Update extract docs --- docs/literate/using/extract.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/literate/using/extract.jl b/docs/literate/using/extract.jl index d7a56b4f..bcd0fef0 100644 --- a/docs/literate/using/extract.jl +++ b/docs/literate/using/extract.jl @@ -41,19 +41,19 @@ ndata = extractGrid(odata,ggrd) # Let us plot the old and new data fig = Figure() -_,_,slon,slat = coordGeoRegion(geo); slon = slon .+ 360 +_,_,slon,slat = coordGeoRegion(geo); slon = slon aspect = (maximum(slon)-minimum(slon))/(maximum(slat)-minimum(slat)) ax = Axis( fig[1,1],width=350,height=350/aspect, - limits=(minimum(slon)-2,maximum(slon)+2,minimum(slat)-2,maximum(slat)+2) + limits=(minimum(slon)-2+360,maximum(slon)+2+360,minimum(slat)-2,maximum(slat)+2) ) contourf!( ax,lon,lat,odata, levels=range(-1,1,length=11),extendlow=:auto,extendhigh=:auto ) lines!(ax,clon,clat,color=:black) -lines!(ax,slon,slat,color=:red,linewidth=5) +lines!(ax,slon.+360,slat.+360,color=:red,linewidth=5) ax = Axis( fig[1,2],width=350,height=350/aspect,