image_cpt!
image_cpt!(img::GMTimage, cpt::GMTcpt, clear=false)
or
image_cpt!(img::GMTimage, cpt::String, clear=false)Add (or replace) a colormap to a GMTimage object from the colors in the cpt. This should have effect only if img is indexed. Use image_cpt!(img, clear=true) to remove a previously existant colormap field in img
See Also
[image_alpha!], ind2rgb
Source Code
This function has multiple methods:
image_cpt!(img::GMTimage; clear)- utils_types.jl:2103image_cpt!(I::GMTimage, cpt::GMTcpt)- utils_types.jl:2096image_cpt!(I::GMTimage, cpt::String)- utils_types.jl:2095