Shading specific regions in a plot

26 views (last 30 days)
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.

Accepted Answer

Image Analyst
Image Analyst on 17 Feb 2019
Try the patch() or fill() function.
  1 Comment
Hari krishnan
Hari krishnan on 20 Feb 2019
@Image Analyst. Thank you very much.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by