highlighting specific points and labels in textscatter object
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
openExample('textanalytics/VisualizeWordEmbeddingsUsingTextScatterPlotsExample')
In the above example, a 2-D word embedding is displayed (first 5000 words). How would I, for instance highlight the label "Obama" or "China" on the resultant map, and the corresponding point(s) in a different color? Further, most labels aren't even displayed because the figure would be too dense. How do I force certain labels to appear, and hide the others?
The properties like 'TextData' require the textData object to be of the same dimension as all the words displayed, but I only need a few highlighted. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232518/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232518/image.png)
0 commentaires
Réponses (1)
Harsha Priya Daggubati
le 7 Août 2019
Hi,
I assume that you want to highlight points and labels that satisfy a threshold.
You can refer to the following link where the points are colored depending on threshold.
0 commentaires
Voir également
Catégories
En savoir plus sur Axis Labels 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!