Scatter Plot colored by Kernel Density Estimate

버전 1.0.0.0 (1.4 KB) 작성자: Nils
Scatter plot where each point is colored by the spatial density of nearby points.
다운로드 수: 3K
업데이트 날짜: 2018/1/15

라이선스 보기

The function use the kernel smoothing function to compute the probability density estimate (PDE) for each point. It uses the PDE has color for each point.
Input
x <Nx1 double> position of markers on X axis
y <Nx1 double> posiiton of markers on Y axis
varargin can be used to send a set of instructions to the scatter function
Supports the MarkerSize parameter
Does not support the MarkerColor parameter
Output:
h returns handles to the scatter objects created
Example
% Generate data
x = normrnd(10,1,1000,1);
y = x*3 + normrnd(10,1,1000,1);
% Plot data using probability density estimate as function
figure(1);
scatter_kde(x, y, 'filled', 'MarkerSize', 100);
% Add Color bar
cb = colorbar();
cb.Label.String = 'Probability density estimate';

인용 양식

Nils (2026). Scatter Plot colored by Kernel Density Estimate (https://kr.mathworks.com/matlabcentral/fileexchange/65728-scatter-plot-colored-by-kernel-density-estimate), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Scatter Plots에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0

Add figure on post