Binned Scatter Plot

版本 1.1.0.0 (3.7 KB) 作者: Stefan Schroedl
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 (2024). Binned Scatter Plot (https://www.mathworks.com/matlabcentral/fileexchange/19506-binned-scatter-plot), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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