Changing the colour of a plot

Hi,
Could anybody tell me how I can get this plot more colourful? It is primarily blue and I can't change it using the colour map because the interval are not small enough.
thank you

5 件のコメント

Image Analyst
Image Analyst 2012 年 12 月 12 日
Link doesn't work.
John
John 2012 年 12 月 12 日
Sorry, it does now.
Thanks
Walter Roberson
Walter Roberson 2012 年 12 月 12 日
Is that a surf() plot ?
John
John 2012 年 12 月 12 日
Yes, it is.
John
John 2012 年 12 月 12 日
編集済み: John 2012 年 12 月 12 日
Here is the data, if you would like to plot it yourself.
surf(x1, y1, z1);
I'm just trying to make it more colourful.
Thanks

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

回答 (1 件)

Matt Fig
Matt Fig 2012 年 12 月 12 日
編集済み: Matt Fig 2012 年 12 月 12 日

0 投票

load Data
S = surf(x1, y1, z1); % Original to compare
figure
S2 = surf(x1, y1, z1);
set(S2,'facecolor','interp','CData',z1*1e3,'cdatam','direct')
set(gcf,'colormap',jet(20)) % You can play around with this.

1 件のコメント

John
John 2012 年 12 月 12 日
Thanks very much

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2012 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by