フィルターのクリア

Colormap tool for different axes

2 ビュー (過去 30 日間)
carlos Uribe
carlos Uribe 2013 年 4 月 11 日
I have a GUI with different axes. I wan to be able to change colormaps when I want and for the axes I want.
The idea is to use something as
imcolormaptool
However, this only works for the last generated axes in the GUI Figure. If I try to pass an axes handle I just get the error:
Function IMCOLORMAPTOOL expected its first input argument, HCLIENT,
to be a handle of one of these types:
figure
Instead, its type was: axes.
Is there a way of doing what I want?

採用された回答

per isakson
per isakson 2013 年 4 月 11 日
編集済み: per isakson 2013 年 4 月 11 日
Coloprmap is a property of Figure. Thus, all axes of a figure share the same colormap at any point in time. imcolormaptool helps you change the colormap of a figure - and all its child-axes.
  2 件のコメント
carlos Uribe
carlos Uribe 2013 年 4 月 11 日
I am using this
to get different colormaps for different axes...
I was wondering if somehow I could use the imcolormaptool to do something similar.
per isakson
per isakson 2013 年 4 月 11 日
編集済み: per isakson 2013 年 4 月 11 日
No you cannot
The Choose Colormap tool is an interactive colormap selection tool that
allows you to change the colormap of the target (current) **figure** by
selecting a colormap from a list of MATLAB colormap functions or
workspace variables, or by entering a custom MATLAB expression.
"freezeColors / unfreezeColors [...]Converts colors of many graphics [...] to [r g b] truecolor." Thus, the axes use true-color, not the colormap. The figure still has only one colormap.

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

その他の回答 (0 件)

カテゴリ

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