How can I label contour lines in meshc 3D-plot?
4 views (last 30 days)
Show older comments
Ibrahim Wasiq
on 28 Feb 2017
Commented: Ibrahim Wasiq
on 2 Mar 2017
I have made a 3D-plot using meshc. I want to add labels to the contour lines. The handle return by the meshc is
h =
2x1 graphics array:
Surface
Contour
So I have tried to edit the properties using following command but it didn't work.
h.ShowText='on';
What is the right way to do it? Thanks
Accepted Answer
Star Strider
on 28 Feb 2017
I would use a separate call to contour. You may have to experiment with the approach in Yair Altman’s Undocumented MATLAB article Customizing contour plots part 2 to put the contour plot on the same plane as the contours drawn by the meshc function.
When you get your code working, consider generalising your code to a function and then contribute it to the File Exchange. It seems useful.
0 Comments
More Answers (0)
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!