Good reminding. It’s still in GMT.jl master. I’ll commit some other changes and release a new version. Should be ready in one or two hours. (do a ] up then and it should be ready to use).
Sorry, a non tested case and a little bug. Will be fixed on master but meanwhile the workaround is to replace the default cpt in the G (GMTgrid) object. That is, do
G.cpt = "batlowK";
and repeat the lelandshade(G, color=true, colorbar=true, fmt=:jpg, show=true) command.
Interesting!
By the way, if i’d like to save it, it seems that fname is not working.
Also, if I’d like to add some faults on top of my topography and an inset map is it possible?
Nice effort.
The name is always a tricky guy in wrapper functions that call other modules inside. Although it would be nice that it works (and it will) with show=true, this options was more intended to for quick views. To do more complex maps don’t use show and it will return a GMTimage object (this is documented) that your can use in other modules. e.g.
I = lelandshade(...)
grdimage(I, ...)
plot!(...)
or even
I = lelandshade(...)
viz(I, name=..., plot(data=...,))