필터 지우기
필터 지우기

Adjusting properties of polar histogram

조회 수: 17 (최근 30일)
Vivek Gupta
Vivek Gupta 2020년 3월 22일
편집: Cris LaPierre 2020년 3월 22일
Hi all, I'm using the polarhistogram function with Matlab R2017a.
I'm trying to do a couple of things and can't figure out how to adjust these properties.
1) Change the radius scale from fractions to percents.
2) Add labels for the radius / degree axis.
3) Change the background grid lines from gray to black.
Are there easy ways to do the above? Thank you.

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 3월 22일
편집: Cris LaPierre 2020년 3월 22일
The best way to see what properties a figure has is to open the property inspector.
  1. set the RTickLabel property. Make sure you have a label for each tick. Note that the label text is indepedent of the tick location value. You can set tick locations with the RTick property.
  2. Set the ThetaTickLabel property (one for each tick). Note that the label text is independent of the tick location value. You can set tick locations with the ThetaTick property.
  3. Set the GridColor property. Because the line is so thin, making it black doesn't make it much darker. I do not see a property for grid line width.
% Example from the doc
theta = [0.1 1.1 5.4 3.4 2.3 4.5 3.2 3.4 5.6 2.3 2.1 3.5 0.6 6.1];
h=polarhistogram(theta,6)
set(gca,'RTickLabel',[0 0.1 0.2 0.3 0.4],...
"ThetaTickLabel",[0:3:30],...
"GridColor",'k')

추가 답변 (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