turbo
説明
例
カラーマップの反転
表面をプロットし、turbo カラーマップを割り当てます。
surf(peaks);
colormap('turbo');
turbo カラーマップ配列を取得し、順序を逆にします。次に、変更したカラーマップを表面に適用します。
c = turbo; c = flipud(c); colormap(c);
カラーマップのダウンサンプリング
10 色のみを含む、turbo カラーマップのダウンサンプリング バージョンを取得します。次に、そのカラーマップと内挿によるシェーディングを適用して、関数 peaks
の等高線を表示します。
c = turbo(10);
surf(peaks);
colormap(c);
shading interp;
jet カラーマップと turbo カラーマップを比較
peaks
データ セットの 2 つの擬似カラー プロットを含むタイル表示チャート レイアウトを作成します。左のプロットは jet カラーマップを、右のプロットは turbo カラーマップを使用します。turbo プロットの方が、jet プロットよりも色相の変化が大きくないことに注目してください。
t = tiledlayout(1,2); [X,Y,Z] = peaks; % Left image ax1 = nexttile; s1 = pcolor(ax1,X,Y,Z); s1.EdgeColor = 'none'; s1.FaceColor = 'interp'; ax1.Colormap = jet; title(ax1,'Jet'); % Right image ax2 = nexttile; s2 = pcolor(ax2,X,Y,Z); s2.EdgeColor = 'none'; s2.FaceColor = 'interp'; ax2.Colormap = turbo; title(ax2,'Turbo');
入力引数
m
— 色数
256
(既定値) | 非負の整数
色数。非負の整数として指定します。m
の既定値は現在の Figure のカラーマップの色の数です。Figure が存在しない場合、既定値は 256
です。
データ型: single
| double
バージョン履歴
R2020b で導入
参考
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)