How to change the linewidth of contour line in the function "surfc" by code?

5 views (last 30 days)
How to change the linewidth of contour line in the function "surfc" by code? Thanks.

Accepted Answer

KSSV
KSSV on 7 Jun 2018
Edited: KSSV on 7 Jun 2018
Take the handle of surfc, it will be a matlab graphics object. It will have two arrays one for surface and other for contour. YOu can control the properties using handle.
[X,Y,Z] = peaks(30);
figure
h = surfc(X,Y,Z) ;
h(2).LineWidth = 2;

More Answers (0)

Categories

Find more on Graphics Object Properties 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!