clplot( x, y, cutval, cols, varargin )

バージョン 2.1.0.0 (4.97 KB) 作成者: Carl Witthoft
Creates a line plot whose color depends on which 'slice' of the y-range the y-value falls into.
ダウンロード: 312
更新 2016/1/15

ライセンスの表示

clplot allows one to highlight the regions of a curve or dataset which fall into different ranges such as quantiles or critical performance levels. Unlike cheap imitations :-), clplot changes colors at exactly the range limits selected, rather than at the next actual data point. The latest version allows for multiple plots on the same graph.
Note: this is a clean, but not optimal implementation. See "clplot.r" in the Plotrix R-packagae for a better, but more complicated version (disclaimer: I wrote that as well).

引用

Carl Witthoft (2024). clplot( x, y, cutval, cols, varargin ) (https://www.mathworks.com/matlabcentral/fileexchange/38125-clplot-x-y-cutval-cols-varargin), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLine Plots についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.1.0.0

Vsn 2.1: clplot now returns the cut-values and the colormap used. This allows the user to plot a second curve on the same graph by feeding these outputs into the next function call. Also minor bugfixes

2.0.1.0

Revision 2: improved input checking; fixed scaling bug that prevented large colormaps (e.g. 'jet', 'hsv' ) from properly scaling to range of y-values.

2.0.0.0

Revision 2: improved input checking; fixed scaling bug that prevented large colormaps (e.g. 'jet', 'hsv' ) from properly scaling to range of y-values.

1.1.0.0

added sample chart

1.0.0.0