Conditionally Colored Plot (CCPLOT)

Plots conditionally colored (2D line) graphs.

現在この提出コンテンツをフォロー中です。

Plots the vector Y versus vector X using conditional coloring based on colormaps.

The condition vector C is independent of the values of X and Y but must be the same size.

The colormap MAP can either be a Matlab or a userdefined colormap.

Example:
x = linspace(0,4*pi,50);
y = sin(x);
c = y.^2;
map = colormap(jet);
h = ccplot(x,y,c,map);
set(h,'Marker','o');

引用

Michael Heidingsfeld (2026). Conditionally Colored Plot (CCPLOT) (https://jp.mathworks.com/matlabcentral/fileexchange/37725-conditionally-colored-plot-ccplot), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Conditionally colored line plot

カテゴリ

Help Center および MATLAB AnswersColor and Styling についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

* Fixed minor error in example

1.0.0.0