フィルターのクリア

How can I change the font and the size of labels on contours?

97 ビュー (過去 30 日間)
Moein
Moein 2016 年 1 月 7 日
コメント済み: Moein 2016 年 1 月 7 日
hi friends
I have a question about labeling and changing the font size. I used the following commands to crate label on contours:
hold on
h = [findobj(gcf,'type','patch'); findobj(gcf,'type','line')];
cs = zeros(2,0);
for k=1:length(h)
cs = [cs [get(h(k),'UserData') get(h(k),'XData').';
length(get(h(k),'XData')) get(h(k),'YData').']];
end
clabel(cs, h)
Now for changing the font and its size what should i do??? What command i should add to the above code?
if you know please answer to my question as simple as you can.
thanks a lot

採用された回答

Steven Lord
Steven Lord 2016 年 1 月 7 日
See the third example on the documentation page for CLABEL for one technique you can use. You can also call CLABEL with an output argument and directly set properties on the text (or line) objects it returns.
  1 件のコメント
Moein
Moein 2016 年 1 月 7 日
Thank you steven. I found it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by