calcTextPosInScatte​rPlot

This function calculates label positions in scatter plot. The position is calculated so as to avoid other data and labels.

Vous suivez désormais cette soumission

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.

Citation pour cette source

Eiji Konaka (2026). calcTextPosInScatterPlot (https://fr.mathworks.com/matlabcentral/fileexchange/82280-calctextposinscatterplot), MATLAB Central File Exchange. Extrait(e) le .

Add the first tag.

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.2

Minor fix.

1.0.1

Fix file upload problem

1.0.0