How to change colormaps for different figures in single plot?

3 ビュー (過去 30 日間)
Jay
Jay 2018 年 12 月 4 日
編集済み: Jan 2018 年 12 月 4 日
I want to change colormap for all three figures. When I used caxis, the colormap of the last figure is changing but not the others. Could anyone suggest a way to do this?untitled1.jpg

採用された回答

Jan
Jan 2018 年 12 月 4 日
You can set the target as first input of the caxis command:
FigH(1) = figure;
FigH(2) = figure;
FigH(3) = figure;
caxis(FigH, 'auto');
Either call caxis 3 times with one figure handle each time, or provide the handles as vector in one caxis call.
  3 件のコメント
Jay
Jay 2018 年 12 月 4 日
When I tried this method, I am gettig all three figures in different windows but not in the same figure. Could you suggest a way to do this?
Jan
Jan 2018 年 12 月 4 日
編集済み: Jan 2018 年 12 月 4 日
@Jay: I cannot guess what you have exactly tried and what "not able" means. Please post your code and the error message, if there is one, or explain the difference between the results and your expectations.
"Figures" are windows, so creating 3 figures means to open 3 windows, of course. I assume you do not mean "docked windows", do you? Please explain exactly, what you want to achieve. What is "all three figures"? What does "combine these figure handles" mean - which figures and what is "combining"?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColor and Styling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by