compass plot label FontSize

조회 수: 7 (최근 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 CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by