densityScatterChart

版本 1.1 (1.5 MB) 作者: Dave B
A scatter where the color (and/or transparency) of the markers indicates the density of points.
982.0 次下载
更新时间 2023/10/6

densityScatterChart

View densityScatterChart on File Exchange Open in MATLAB Online

Version: 1.1

Density Scatter Chart is a scatter where the color (and/or transparency) of the markers indicates the density of points.

Example densityScatterChart

How to use:

x=randn(1000,1);
y=randn(1000,1)
densityScatterChart(x,y);   % create a chart where color varies with density

%% You can set properties using name value pairs
% Create a chart where transparency varies with density:
densityScatterChart(x, y, 'UseColor', false, 'UseAlpha', true);

% Specify a title:
densityScatterChart(x, y, "Title", "My density scatter chart");

%% You can also set properties after making the chart:
d=densityScatterChart(x, y);

% Make a steeper density view
d.DensityExponent = 2;

% Use alpha, but make it a subtle effect by using a small range:
d.AlphaRange = [.2 .8];

引用格式

Dave B (2024). densityScatterChart (https://github.com/MATLAB-Graphics-and-App-Building/densityScatterChart/releases/tag/v1.1), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
与 R2020b 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Discrete Data Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1

See release notes for this release on GitHub: https://github.com/MATLAB-Graphics-and-App-Building/densityScatterChart/releases/tag/v1.1

1.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库