Urgent! .....Compass plot

조회 수: 5 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 5월 9일
답변: Abby Skofield 2024년 10월 4일
How to set the axis limits for compass plot. I want to set axis from 0 to 360 degree in clockwise direction.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 5월 9일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency

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

채택된 답변

Geoff
Geoff 2012년 5월 9일
Why is this urgent?
Try this:
set(gca,'xdir','reverse')
Or if you want the zero on the right as normal, do this instead:
set(gca,'ydir','reverse')
  댓글 수: 4
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 5월 10일
I tried using hgtransform, I could able to alter the xlable, ylable, Xtick, Ytick and many related property. But the compass routine displays the degrees in lable which I could not to find out the type of handles. Certainly it is not in the MATLAB documentation. pls help
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 5월 11일
I could able to alter the routine for polar(). The text dispalyed in the compass plot can be altered by modifying the text() command with in the polar() routine. Later by using the set(gca, 'ydir', 'reverse') and view(270,90) it is possible to vary the elevation and azimutal by which zero degree plots in the vertical axis.

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

추가 답변 (1개)

Abby Skofield
Abby Skofield 2024년 10월 4일
Starting in R2024b, the compassplot function can be used in place of compass to create arrows eminating from the origin of a polar axes. The PolarAxes class has many properties and several functions you can use to customize its appearance, like the direction. Note that compassplot can be combined in a PolarAxes with other plots like polarhistogram, polarplot, polarscatter, etc.
t = linspace(0,3*pi/2,10);
pax = polaraxes;
cp = compassplot(t,10:-1:1); % new in R2024b
pax.ThetaDir = "clockwise";
pax.ThetaZeroLocation = "top";

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by