-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Might not be a bug. For the following code, if I add "DCW=(country=:CA, pen=(0.225,:black))", the Canada border will be shown, but the grid line (lat, lon) will not show.
If I remove "DCW=(country=:CA, pen=(0.225,:black))", the grid line shows well. Any reason why the country and grid line repel each other?
Thanks. Liming.
for yy = 1: 1
file_out = @sprintf("Pixel_%s_%04d.png", this_variable, year(year_list[yy]));
file_out = joinpath(data_path1, file_out);
println(file_out)
x.z[:] = reverse(transpose(data[:,:,yy]), dims=1);
x.z[x.z .== 0] .= NaN
# figure 7
topo = makecpt(color=:jet, range= (0, 250, 10), continuous=true) #make colorbar other options: color=:polar
gmt("set MAP_GRID_PEN_PRIMARY thinnest,.");
grdimage(x, show=false,
interp = "n",
frame=(axes=(:left_bare,:bottom_bare,:right_bare,:top_bare), annot=true, ),
coast=(**DCW=(country=:CA, pen=(0.225,:black)),** frame=(axes="WSEN", grid=10, annot=10, ticks=2, ), ),
colorbar=(pos=(anchor=:BC,length=(10.5,0.5), horizontal=true, offset=(0,.8), ), color=topo, show=true, frame=(ylabel=:"mm year@+-1@+",ticks = :auto, annot = :auto) ),
par=(MAP_ANNOT_ORTHO=:n, MAP_TITLE_OFFSET = 0.8, ), fmt=:png,
savefig = file_out, dpi=600);
end
Metadata
Metadata
Assignees
Labels
No labels