Coloring different parts in a plot with different color
Show older comments
Hi,
I have the following plot and I want to color the complete area where red data are present with a different color as compared to the area where blue data are present. Is there any way to do it? I tried with fill and area functions but no luck. Can anyone please help me with this?

4 Comments
Image Analyst
on 4 Feb 2017
What do you consider "the complete area where red data are present"? The convex hull? Please attach a picture where you've manually colored in the regions you want colored.
Swarnava Pramanik
on 4 Feb 2017
Swarnava Pramanik
on 4 Feb 2017
Walter Roberson
on 4 Feb 2017
Note that your convex hulls can overlap. boundary() can overlap as well but the risk is lower
Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots 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!