How do you plot a line of constant value on a surface plot?
30 views (last 30 days)
Show older comments
I'm working on using surface plots to show data gathered in 3-d (longitude, latitude, depth). Is there a way to highlight a specific contour line on a surface plot?
In 2-d, I would typically use contourf(x,y,v,'linecolor','none') and contour(x,y,v,[30 30]) if I wanted to highlight the value 30.
0 Comments
Answers (1)
Star Strider
on 20 Sep 2021
2 Comments
Star Strider
on 20 Sep 2021
I have no idea what the ‘ss’ argument is. That may work as a colour argument for surf, however it is not appropriate for contour3.
It will probably work without ‘ss’, whatever it is:
contour3(x_plot,y_plot,z_plot,[1490 1490],'k') %this would be the step to replace to plot a constant contour
.
See Also
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!