abyss
説明
例
イメージ カラーマップの変更
色の数が異なるヒートマップ
既定では、ヒートマップ チャートは sky
カラーマップの 256 色のサンプリングを使用します。関数 heatmap
の名前と値の引数 Colormap
を指定して、カラーマップとサンプリングを変更できます。
たとえば、2 行 1 列のタイル表示チャート レイアウトで 2 つのヒートマップ チャートを作成します。上のチャートでは abyss
カラーマップの 256 色を使用しており、下のチャートでは 2 色のみを使用しています。
tiledlayout(2,1) % Top chart with default number of colors nexttile cdata = magic(10); heatmap(cdata,Colormap=abyss) title("256 Colors") % Bottom chart with two colors nexttile heatmap(cdata,Colormap=abyss(2)) title("2 Colors")
入力引数
m
— 色数
256
(既定値) | 非負の整数
色数。非負の整数として指定します。m
の既定値は現在の Figure のカラーマップの色の数です。Figure が存在しない場合、既定値は 256
です。
データ型: single
| double
バージョン履歴
R2023b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)