Would anyone please help me check what I did wrong with my makecpt syntax?
makecpt
Syntax: topo = makecpt(cmap=:jet, range=(0,0.02,10) )
topo = makecpt(cmap=:jet, range=(0,0.02,10) )
Error:
makecpt [ERROR]: **Need at least two nodes to form a CPT slice, your choice only resulted in 1 nodes** **ERROR:** LoadError: Something went wrong when calling the module. GMT error number = 79.
tagging @Joaquim
From the manual
So if third arg in range is meant to be the number of intervals between 0 and 0.02, do
range
topo = makecpt(cmap=:jet, range=(0,0.02,11,:number) );
Many thanks! That was the problem.
I assumed that the interval should be in the middle, without realizing that GMT wants it to be at the end.