How to delete the contuor black line?!

2 views (last 30 days)
kyoung won Min
kyoung won Min on 23 Aug 2021
Commented: Adam Danz on 23 Aug 2021
When I use fit function, how to delete the contour balck line?!
My code is shown as below.
=========================================================
[xData, yData, zData] = prepareSurfaceData( xxx, yyy, zzz );
ft = 'cubicinterp';
[fitresult, gof] = fit( [xData, yData], zData, ft, 'Normalize', 'on' );
h = plot( fitresult,'Style', 'Contour');
=========================================================
And the result is shown as below.
========================================================
========================================================
But in the figure, I want to delete contour line!
  3 Comments
kyoung won Min
kyoung won Min on 23 Aug 2021
oh I solved it now!
set (h, 'edgecolor', 'none')
To solve my problem, we use the above command : )
Adam Danz
Adam Danz on 23 Aug 2021
Or, h.LineColor = 'none';
or, h.LineStyle = 'none';

Sign in to comment.

Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!