Delete a specific shape of marker from a plot

11 vues (au cours des 30 derniers jours)
Jason
Jason le 6 Jan 2020
Commenté : Jason le 6 Jan 2020
Hello, I am plotting data using dots and then superimpose a marker of type '+' at certain locations. Is it possible to delete just the '+' markers from the GUIDE axes.
I have tried
delete( findobj(gca, 'type', 'line') );
But this deletes all the markers (including '.')
Thanks
Jason

Réponse acceptée

Adam Danz
Adam Danz le 6 Jan 2020
delete(findobj(gca, 'Marker', '+'))

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots 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!

Translated by