Binned Scatter Plot

plot quantiles of y given quantiles of x.
ダウンロード: 2.3K
更新 2010/1/12

ライセンスの表示

With the default settings, BINNED_PLOT(X,Y) splits vector X into bins of approximately equal size, and plots each median against the median of the corresponding Y-values, as well as their inter-quartile range. X and Y must have the same number of rows or columns.

This is useful to visualize two-dimensional distributions.

Options include e.g.: plotting different quantiles; means/variances instead of quantiles; varying the number of bins; and density-dependent coloring.

Example:
x=0:0.1:20;
y=[sin(x); cos(x)] +randn(2,201);
binned_plot(x,y)

引用

Stefan Schroedl (2026). Binned Scatter Plot (https://jp.mathworks.com/matlabcentral/fileexchange/19506-binned-scatter-plot), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2007a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersScatter Plots についてさらに検索
謝辞

ヒントを与えたファイル: clickfit_OH for curve fitting by eye/hand

バージョン 公開済み リリース ノート
1.1.0.0

- Bug fixes: rare cases of empty bins; show minimum and maximum x-value
- New options: density-based transparency; mean/std instead of quantiles (useful for quantized data)
- Optional arguments specified as attribute/value pairs

1.0.0.0