Marking highlighted data points with text on a scatter plot

1 vue (au cours des 30 derniers jours)
Matt Rulli
Matt Rulli le 8 Avr 2018
Commenté : Steven Lord le 8 Avr 2018
After highlighting data points on a scatter plot, how do I apply the text function to include the x values over the points?
scatter(range,ratsmask,'fill','red')
range is the domain of values, and ratsmask is a logical mask identifying which of those values meets a specific condition. The plot is done, but how do I display the x index as text above the point.
text(range,ratsmask,'????')
Any help is appreciated!

Réponses (1)

Steven Lord
Steven Lord le 8 Avr 2018
Use the text function.
  1 commentaire
Steven Lord
Steven Lord le 8 Avr 2018
The num2str or sprintf functions may be of use.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by