Contour bar level step

I have 5 different group of data which have different properties. I want to show them in the contour plot by just five colors. But it shows me some extra colors both in the plot and in the color bar. How can I be specific about the colors? Thanks.

3 件のコメント

Walter Roberson
Walter Roberson 2018 年 1 月 19 日
When you call contour() are you passing in the number of contours you want, or are you passing in a vector of contour levels?
Nahid Taheri
Nahid Taheri 2018 年 1 月 20 日
No, how should I do that?
Walter Roberson
Walter Roberson 2018 年 1 月 20 日
contour(Z,v) draws a contour plot of matrix Z with contour lines at the data values specified in the monotonically increasing vector v.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

質問済み:

2018 年 1 月 19 日

コメント済み:

2018 年 1 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by