How to get an enlarged view of plotted polar plot ?

조회 수: 10 (최근 30일)
L K
L K 2017년 3월 14일
댓글: KSSV 2017년 3월 14일
I have polar plot, with some marking, but when the figure pops, i have to zoom and see the markings as they are very close to each other, is there an option to enlarge when it is viewed?

답변 (1개)

KSSV
KSSV 2017년 3월 14일
If you are using latest version of MATLAB you can limit the axis using rlim. If you are in older version, after plotting the figure, get the axes and set the limits you want.
t = 0 : .01 : 2 * pi;
P = polar(t, 2 * ones(size(t)));
set(P, 'Visible', 'off')
hold on
polar(t, sin(2 * t) .* cos(2 * t), '--r')
ax = gca;
In the above ax have XLim and YLim, set it to the limits you want.
  댓글 수: 3
L K
L K 2017년 3월 14일
eg. i did xlim([-25 25]); no changes are reflected
KSSV
KSSV 2017년 3월 14일
Try changing the limits....

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by