フィルターのクリア

How to get more color gradient on a surface plot?

20 ビュー (過去 30 日間)
Al
Al 2015 年 5 月 9 日
コメント済み: Al 2015 年 5 月 20 日
I have made a surface plot. The color gradient is mostly dark blue. How can I adjust the color gradient to get more colors?
Adjusting the color map in the plot tools does not work.

採用された回答

Image Analyst
Image Analyst 2015 年 5 月 9 日
You need to manually build a non linear colormap. Attach your data and script so people can show you how.
  11 件のコメント
Walter Roberson
Walter Roberson 2015 年 5 月 11 日
I don't think you did what I asked. I think you did
surf(Xm, Ym, log10(Zm)); set(gca,'ZScale','log');
or else
surf(Xm, Ym, log10(Zm), Zm); set(gca,'ZScale','log');
or else
surf(Xm, Ym, log10(Zm), log10(Zm)); set(gca,'ZScale','log');
but what I asked for was
surf(Xm, Ym, Zm, log10(Zm)); set(gca,'ZScale','log');
You would only get the error you did if you had negative Zm or negative log10(Zm) in the third position in conjunction with log axis.
Al
Al 2015 年 5 月 20 日
The one you asked for works. Thank you.
surf(Xm, Ym, Zm, log10(Zm)); set(gca,'ZScale','log');

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by