compass plot label FontSize

10 ビュー (過去 30 日間)
ceejay
ceejay 2021 年 5 月 12 日
コメント済み: ceejay 2021 年 5 月 13 日
Please could you tell me if it is possible to specify a font size of, say, 14 for the r and theta axes of a compass plot? I have tried using ax = gca and ax.FontSize =... and rticklabels but I can't get anything to work. Apologies if I have missed some documentation...

採用された回答

Adam Danz
Adam Danz 2021 年 5 月 12 日
編集済み: Adam Danz 2021 年 5 月 12 日
compass() still uses the old polar axes that are actually cartesian axes with circles and radii to appear as polar axes. The tick labels are just text objects since there aren't really theta or rho axis-components.
Get the tick labels by searching text objects.
u = [5 3 -4 -3 5];
v = [1 5 3 -2 -6];
h = compass(u,v);
ax = ancestor(h(1),'axes');
th = findall(ax,'Type','Text');
set(th, 'FontSize', 14)
  1 件のコメント
ceejay
ceejay 2021 年 5 月 13 日
Brilliant, thank you!!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by