ThetaLim is not working with Polarscatter

조회 수: 2 (최근 30일)
Junaid Mehmood
Junaid Mehmood 2019년 9월 9일
답변: Pravin Jagtap 2019년 9월 20일
I am creating a polar scatter plot as follows:
theta = linspace(0,180 ,11) ;
theta_cntr = mean([theta(1:end-1);theta(2:end)]) ;
theta_edges = repmat(theta_cntr,[1,2]);
dist = linspace(0,100 , 11) ;
dist_cntr = mean([dist(1:end-1);dist(2:end)]) ;
dist_edges = repmat(dist_cntr,[10,1]);
dist_edges_plot = dist_edges(:,[4,5]);
marker_size = [4;12;26;39;30;37;35;23;13;3;23;40;62;97;123;112;87;54;32;13] ;
figure
pax = polaraxes;
polarscatter(deg2rad(theta_edges),dist_edges_plot(:),marker_size)
When I change the ThetaLim property, it changes the marker size. I do not understand what is the issue here.
figure
pax = polaraxes;
polarscatter(deg2rad(theta_edges),dist_edges_plot(:),marker_size)
pax.ThetaLim = [0 180]
  댓글 수: 2
Pravin Jagtap
Pravin Jagtap 2019년 9월 18일
Hello Junaid,
I am unable to reproduce the error. I am assuming you are plotting two different figures with different 'ThetaLim' axes property. Please provide the MATLAB version and platform you are using.
Junaid Mehmood
Junaid Mehmood 2019년 9월 18일
편집: Junaid Mehmood 2019년 9월 18일
I am using matlab 2018b on windows 10. I still have the same issue. Yes, I am plotting two different figures with different 'ThetaLim'. 'ThetaLim' should essentially change the axes limits not the size of the markers.

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

채택된 답변

Pravin Jagtap
Pravin Jagtap 2019년 9월 20일
Hello Junaid,
I have brought this issue to the notice of our developers. They will investigate the matter further.
Kind Regards
~Pravin

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