How do I hide values which are out of the plot borders after I zoomed in?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Marcell Szántó
le 13 Avr 2016
Commenté : Marcell Szántó
le 13 Avr 2016
I displayed several values on a World map using the text function. After I zoomed in the values went out of the borders of the plot as shown on the image below. How do I hide those values? I already tried setting the limits of the axis but it didn't work. I have over 400 values and I need to zoom in to several places so I don't want to search and display just the values betwwen the borders.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161093/image.jpeg)
0 commentaires
Réponse acceptée
Mike Garrity
le 13 Avr 2016
For historical reasons, the default value of the text object's Clipping property is 'off'. You can override that:
subplot(2,1,2)
text(.25,1.1,'You can see this')
text(.75,1.1,'You cannot see this','Clipping','on')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Exploration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!