How can I apply data labels to each point in a scatter plot in MATLAB 7.0.4 (R14SP2) ?
Mostra commenti meno recenti
I want to apply different data labels to each point in a scatter plot. I want to be able to place a text of my choice next to each data point in the scatter plot.
Risposta accettata
Più risposte (1)
Adam Danz
il 8 Giu 2014
Modificato: MathWorks Support Team
il 20 Mag 2023
8 voti
For convenience, I've provided a function that labels desired points based on x and y values along with a string of labels. It works or numerical or text labels. It has additional parameters for positioning the label in reference to the data points (north, south, east etc) and has an option of adjusting axis limits if a data label is running off the plotted area.
Categorie
Scopri di più su Scatter Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!