color dot plot

バージョン 1.0.0.0 (1.66 KB) 作成者: Per Sundqvist
Colored 2D scatter density plot. Mimics a 2D probability distribution for random data points.
ダウンロード: 1.6K
更新 2010/12/7

ライセンスの表示

Color Scatter Plot for random data point visualization. It mimics a continuous 2D probability distribution.
coldotplot(x,y,s0,Ad) creates at scatterplot with dots of sizes that correspond to their density in the swarm of points. The larger dots will also have a more "hot" color in the dense particle region. The data x and y are vectors of the same size, s0 is a parameter of local radii around each datapoint (defalult = 0.5). Ad is a visualization parameter for the area of the weighted dots (default = 1).
Warning: May be slow for very large sizes of x and y. It's very basic and may well be improved...

% Example:
N=1000;
x=randn(1,N);
y=10*randn(1,N);
s0=0.5;
Ad=0.2;
% Plot the density color plot
coldotplot(x,y,s0,Ad)

引用

Per Sundqvist (2025). color dot plot (https://jp.mathworks.com/matlabcentral/fileexchange/29641-color-dot-plot), MATLAB Central File Exchange. に取得済み.

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

Community Treasure Hunt

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

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