Change Marker/MarkerSize in ContourPlot - Error (no property in class)

1 回表示 (過去 30 日間)
Vuk
Vuk 2018 年 4 月 24 日
回答済み: Walter Roberson 2018 年 4 月 24 日
Dear Matlab Community,
I have a problem changing the Marker settings on a contour plot.
I have pieced this code together to produce the contour figure plot:
figure(3)
set(figure(3),'position',[500 200 1100 400],'Color',[1 1 1]);
[xData, yData, zData] = prepareSurfaceData( x, y, z );
ft_cont = 'linearinterp';
[fitresult, gof2]= fit( [xData, yData], zData, ft_cont, 'Normalize', 'on');
h_cont=plot( fitresult, [xData, yData], zData, 'Style', 'Contour');
clabel(h_cont(1).ContourMatrix, h_cont(1))
However, when I try to set very small MarkerSize or even Marker property to None, I get following error:
There is no Marker/MarkerSize property on the Contour class.
My plot looks similar to this one:
How can I make those big blue markers disappear? Any help appreciated!
All the best,
  2 件のコメント
Vuk
Vuk 2018 年 4 月 24 日
Thank you for the link - but it doesn't have code to make those markers disappear :(

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 4 月 24 日
h_cont(2).Marker = 'none';

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by