Two curves on different r axis in polarplot
Show older comments
I would like to plot two curves in the same polarplot (or aný circel diagram) but on two different axis, in similar way yyaxis works for an ordinary plot.
Example of my code below. One curve (blue) on r-axis with blue labels. I would like an r-axis with red labels along another r-axis angle for the red curve.
Thanks in advance /Julia
Example code:
t = 0 : 2*pi/177 : 2*pi;
a=linspace(0.3,0.5,178);
m=linspace(0.4,0.6,178);
figure(3)
ax = polaraxes;
hold on
polarplot(ax,t,a,'-b')
polarplot(ax,t,m,'-r')
ax.RColor ='blue';
ax.ThetaDir = 'counterclockwise';
ax.ThetaZeroLocation = 'bottom';
thetaticks([0:30:360])
thetaticklabels({'180','150','120','90','60','30','0','330','300','270','240','210'})
Accepted Answer
More Answers (1)
Julia Nilsson
on 19 Aug 2019
0 votes
1 Comment
Star Strider
on 19 Aug 2019
As always, my pleasure! We all are!
Categories
Find more on Polar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!