Colormap in 2D plot
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luca
am 13 Nov. 2018
Beantwortet: Adam Danz
am 13 Nov. 2018
I have 3 plot ( q1(s) q2(s) and q3(s) and I would to color functions know that
the mincolor is to zero value end maxcolor is max of q1(s1) q2(s1) and q3(s1).
Could you help me please?
s1=0:0.01:b_inf;
q1_vect = double(subs(q1,s,s1));
subplot(1,3,1)
xx1=[s1;s1];
yy1=[q1_vect;q1_vect];
zz1=zeros(size(xx1));
hs1=surf(xx1,yy1,zz1,yy1,'EdgeColor','interp') %// color binded to "q1_vect" values
colormap(jet)
view(2) %// view(0,90)
ylim([0 18]);
xlim([0 b_inf]);
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 13 Nov. 2018
See documentation for caxis.
doc caxis
After each plot,
caxis([0, q1(s1)])
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colormaps 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!