imagesc
I = imagesc(mat; x=, y=, hdr=, proj4=, wkt=, GI=, clim=, cmap=, kw...) --> GMTimage
keywords: GMT, Julia, grid, image
imagesc takes a Float matrix or a GMTgrid type and scales it (by default) to the [0, 255] interval. In the process it creates a GMTimage type. Those types can account for coordinates and projection information, hence the optional arguments. Contrary to its Matlab cousin, it doesn't display the result (that we easily do with imshow(mat)
) but return instead a GMTimage object.
clim
: Specify clims as a two-element vector of the form [cmin cmax], where values of the scaled image less than or equal to cmin are assigned that value. The same goes for cmax.
GI
: This can be either a GMTgrid or a GMTimage and its contents is used to set spatial contents (x,y coordinates) and projection info that one may attach to the created image result. This is a handy alterative to thex=, y=, proj4=...
options.
Examples
Create a grayscale image out of the peaks
function.
using GMT
viz(imagesc(GMT.peaks()))
See Also
These docs were autogenerated using GMT: v1.11.0