How to add a horizontal line in a bar plot????
Afficher commentaires plus anciens
Dear all,
i use the command bar for a plot. I want to insert a horizontal line in a bar plot at y = 30. How can I do that? Thank you!
Réponse acceptée
Plus de réponses (1)
Vivian Hauss
le 19 Juil 2016
Modifié(e) : Vivian Hauss
le 19 Juil 2016
A bit shorter:
hline(30,':k','This Line is horizontal')
1 commentaire
Pablo Sánchez
le 8 Déc 2020
Modifié(e) : Pablo Sánchez
le 8 Déc 2020
Does hline() exist? Is yline()
Catégories
En savoir plus sur Line Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!