matlab - Is it possible to have different contour ranges for contourf? -


i have bathymetry data values ranging -7000 0. possible contour different value ranges in single image? example: range -100 10, -1000 -100, -5000 -1000 , -7000 -5000 in single contourf plot.

sure – specify vector in second argument, e.g.:

z = peaks; contourf(z,[-10 -5 -1 0 1 5 10]); 

you can use inf , -inf @ extremes make sure capture extrema (or min(z(:)) , max(z(:))).

in case, use [-7000 -5000 -1000 -100 10] second vector ranges want. not sure why want go +10 when said range of data goes 0...


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -