Draw solid line around area in contourf
Show older comments
Hi!
I wonder how I can plot a solid line around areas when using contourf? I use
figure
contour(t,frequency,power,20);
set(gca,'YLim',[5 15]);
colormap(autumn);
to plot power versus frequency and time. In many cases I have nans so the plot has white areas as well. So, I wonder how I can plot a solid line separating the colorful areas from the white (nan) areas? It would kind of be drawing a line around areas in the figure. The power at the border between the white and the areas isn't necessarily the same everywhere (so I can't plot a line when the power equals a certain value).
Thanks!
Emma
Accepted Answer
More Answers (0)
Categories
Find more on Parametric Modeling 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!