フィルターのクリア

Colors in Polar Plots dissapearing when Scaling colorbar

1 回表示 (過去 30 日間)
Shaumik
Shaumik 2012 年 11 月 5 日
I am changing the colorbar scale using the caxis command --- caxis([1 2]) --- (for 3 polar plots) but in all the cases the colors in the plot are disappearing.
I don't know why this is happening. Please help.
  2 件のコメント
José-Luis
José-Luis 2012 年 11 月 5 日
Please post some example code so we can try and reproduce the problem.
Shaumik
Shaumik 2012 年 11 月 5 日
>> contourf(PhC) >> colorbar >> caxis([1 5])
when I do this the colors in the graph goes away... PhC is a file from which I am importing the values

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

回答 (1 件)

José-Luis
José-Luis 2012 年 11 月 6 日
Please read the documentation
doc caxis
From the description of your problem I would guess that the values in PhC are either all inferior to the inferior limit in caxis or larger than the superior limit. That would cause your plot to have only one color.

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by