How can I colour a surface plot such that one colormap is used for regions where the z-axis is greater than zero and another is used for regions where the z-axis is less than zero?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
The problem has arisen because I have quite a complex and jagged surface plot and have so far been unsuccessful in being able to illustrate the behaviour of the data in a meaningful way.
I feel that if I can highlight the positive and negative regions of the surface plot it will allow me to set the viewing angle in a position that would otherwise make the height of the surface somewhat unclear, but at that same time illustrating the x-y behaviour quite well.
Thanks very much for your help - I really appreciate it!
0 Kommentare
Antworten (1)
Dishant Arora
am 31 Jul. 2013
a = [jet; gray]; % In general a = [cdata1; cdata2];
colormap(a);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!