Shading specific regions in a plot

3 vues (au cours des 30 derniers jours)
Hari krishnan
Hari krishnan le 17 Fév 2019
Commenté : Hari krishnan le 20 Fév 2019
Hi, I have a plot as attached in the picture. I would like to shade a specific portion of the plot and add labels to it. For eg: I have to shade the regions from time 30 to 50 minutes only for the green-line(Good workshop). I tried using 'ShadedtimeSeries' function, but it makes the shading for all the values of all the individual lines in the plot. Any help to solve this will be appreciated.

Réponse acceptée

Image Analyst
Image Analyst le 17 Fév 2019
Try the patch() or fill() function.
  1 commentaire
Hari krishnan
Hari krishnan le 20 Fév 2019
@Image Analyst. Thank you very much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Distribution 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