calcTextPosInScatte​rPlot

版本 1.0.2 (23.7 KB) 作者: Eiji Konaka
This function calculates label positions in scatter plot. The position is calculated so as to avoid other data and labels.
36.0 次下载
更新 2020/11/5

查看许可证

function [txPos]=calcTextPosInScatterPlot(dtPos)

Input: dtPos (n x 2 matrix with (double) value.)
This matrix shows the data plotted as a scatter plot.

Output: txPos (n x 2 matrix with (double) value.)
This matrix shows the label position associated with dtPos.

usage_calcTextPosInScatterPlot.m
This file is an example of usage of calcTextPosInScatterPlot.
1. Prepare dtPos.
2. Call [txPos]=calcTextPosInScatterPlot(dtPos)
3. Place texts on txPos and markers on dtPos. In this example, associated text and data point are connected with dashed lines.

引用格式

Eiji Konaka (2026). calcTextPosInScatterPlot (https://ww2.mathworks.cn/matlabcentral/fileexchange/82280-calctextposinscatterplot), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
版本 已发布 发行说明
1.0.2

Minor fix.

1.0.1

Fix file upload problem

1.0.0