Replace the datapoints of a scatter plot with labels or text from a vector of strings

9 views (last 30 days)
I want to replace the data symbols in a X - Y scatter plot with site names and/or numbers from a third corresponding vector of site names (as a string array) so I can see from which site each X - Y data point came from. Can this be done?

Answers (1)

Walter Roberson
Walter Roberson on 10 Jun 2011
A scatter plot is not much more than a bunch of patches. Take away the part being drawn by the patch and you have nothing usable left.
If you want to put a name at a particular position, text() it in to place.

Community Treasure Hunt

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

Start Hunting!