Skip to content

Commit 19d114c

Browse files
authored
Add files via upload
1 parent 110098f commit 19d114c

49 files changed

Lines changed: 48 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/tutorials/choropleths/choropleths/code/example_figure.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ begin # hide
33
using GMT # hide
44
GMT.isFranklin[1] = true # hide
55
getpath4docs(file::String) = joinpath("..", "..", "..", "..", "..", file) # hide
6-
using GMT # Hide
7-
D = gmtread("/vsizip//vsicurl/https://www2.census.gov/geo/tiger/GENZ2024/shp/cb_2024_us_state_500k.zip"); # Hide
8-
9-
Df = filter(D, _region=(-125,-66,24,50), _unique=true); # Keep only the largest polygon per state
10-
11-
pop = gmtread(TESTSDIR * "assets/uspop.csv");
12-
zvals = polygonlevels(Df, pop, att="NAME") / 1e6;
13-
C = makecpt(zvals, auto=:r, reverse =true, cmap=:bamako);
14-
15-
bubblechart(Df, labels="attrib=STUSPS", proj=:guess, zcolor=zvals,
6+
using GMT # Hide
7+
D = gmtread("/vsizip//vsicurl/https://www2.census.gov/geo/tiger/GENZ2024/shp/cb_2024_us_state_500k.zip"); # Hide
8+
9+
Df = filter(D, _region=(-125,-66,24,50), _unique=true); # Keep only the largest polygon per state
10+
11+
pop = gmtread(TESTSDIR * "assets/uspop.csv");
12+
zvals = polygonlevels(Df, pop, att="NAME") / 1e6;
13+
C = makecpt(zvals, auto=:r, reverse =true, cmap=:bamako);
14+
15+
bubblechart(Df, labels="attrib=STUSPS", proj=:guess, zcolor=zvals,
1616
cmap=C, colorbar=true, show=true)
1717
end # hide
18-
mv(joinpath(tempdir(), "GMTjl_" * GMT.TMPDIR_USR[2] * "." * "png"), joinpath(@OUTPUT, "example_9720144734230891732.png"), force=true); # hide
18+
mv(joinpath(tempdir(), "GMTjl_" * GMT.TMPDIR_USR[2] * "." * "png"), joinpath(@OUTPUT, "example_3457114486642325480.png"), force=true); # hide
1919
GMT.isFranklin[1] = false # hide
2020
GMT.IamModern[1] = false # hide
2121

202 KB
62.5 KB
223 KB
70.9 KB
220 KB
67 KB
142 KB
73.3 KB
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
MethodError: no method matching setindex!(::Base.RefValue{Bool}, ::Bool, ::Int64)
2-
3-
Closest candidates are:
4-
setindex!(::Base.RefValue, ::Any)
5-
@ Base refvalue.jl:60
6-
setindex!(::Ref, ::Any, !Matched::CartesianIndex{0})
7-
@ Base multidimensional.jl:1942
8-

0 commit comments

Comments
 (0)