How to plot MESH only in black?
15 ビュー (過去 30 日間)
古いコメントを表示
Can the 'mesh' plot be in a single color, say black, and not in color map?
Thanks.
0 件のコメント
回答 (5 件)
José-Luis
2014 年 6 月 3 日
編集済み: José-Luis
2014 年 6 月 3 日
You could set the colormap to black only, and use surf instead.
[x,y] = meshgrid([-2:.2:2]);
Z = x.*exp(-x.^2-y.^2);
surf(x,y,Z)
colormap([0 0 0])
John
2014 年 6 月 3 日
1 件のコメント
Kelly Kearney
2014 年 6 月 3 日
What do you mean? A mesh plot doesn't have a "baseline"... perhaps you're seeing an artifact of your data? Can you give an example, or post a screenshot of your plot?
Bjørn Kvamme
2020 年 3 月 23 日
I wanted to get this plot in shades of grey/black instead of colours but meshc does not accept "edgecolour"
load CH4_expT4
x3=CH4_expT4(:,1)
y3=CH4_expT4(:,3)
z3=CH4_expT4(:,2)
xv = linspace(min(x3), max(x3), 1000);
yv = linspace(min(y3), max(y3), 1000);
[X,Y] = meshgrid(xv, yv);
Z = griddata(x3, y3, z3, X, Y);
meshc(X,Y,Z,'edgecolor','k')
grid on
ylabel('Temperature (K)')
zlabel('Pressure (Bars)')
xlabel('time (hours)')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!