Color background between two ylines patch (datetime)
Show older comments
I have a plot with heartrate over time, using a datetime function. In addition I have two ylines (y=60 and y=100). Now I want to color the area (background) between those y-lines, for my whole timeline using datetime. The function patch does not work, as it cannot deal with datetime functions. How can I do this?
1 Comment
Geoff Hayes
on 15 Mar 2019
Lieke - can you provide a screen shot of what you have and what you want coloured in? I don't understand how the datetime function is an issue since you just want to color the area between those y-lines. Aren't the y-lines just y=60 and y=100?
Accepted Answer
More Answers (1)
Lieke Numan
on 15 Mar 2019
0 votes
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!