How to make one contour transparent in contourf?
Show older comments
Hello, I have a contour plot with several layers define as follows:
[c,h]=contourf(X,Y,Z,[value1 value2 value3 value4]);
I would like to make a selected contour transparent, let's say the first contour defined by value1. Any thought on how to proceed? Thanks.
Arnault
Accepted Answer
More Answers (2)
Will Grant
on 31 Aug 2021
Edited: Will Grant
on 31 Aug 2021
1 vote
Leslie
on 3 Feb 2015
0 votes
This solution has stopped working in 2014b. Does anyone know if we still change the tranparency of 2D contour plots? If so how? Thanks
1 Comment
Boris Belousov
on 25 Feb 2016
Edited: Boris Belousov
on 25 Feb 2016
Unfortunately you have to manually define a contour of the area you want to make transparent. See how to make contour plots transparent.
Categories
Find more on Contour 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!