フィルターのクリア

manually label contours when there are two different contour plots on one graph

2 ビュー (過去 30 日間)
Andrew Alkiviades
Andrew Alkiviades 2013 年 10 月 5 日
回答済み: dpb 2013 年 10 月 5 日
Hi I have the following code. I want to be able to manually select which contours to be labeled. At the moment it only selects one of the two contour sets. Is there a way to manual choose which contours are labelled? Also, I would like to add a "£" and "%" sign in front of each label - is that possible?
Thank you !
figure;
[A,h] = contour(dataA,20)
hold on
[B,t] = contour(dataB,20)
clabel(A,h,'manual','FontSize',16);
clabel(B,t,'manual','FontSize',16);

回答 (1 件)

dpb
dpb 2013 年 10 月 5 日
Use the 3-input form of clabel
clabel(CS, H, V) % label contours in V for handle H
doc clabel % for more details

カテゴリ

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