How can I set an axis outside the polar figure
Afficher commentaires plus anciens
How can i set the pola axis outside the figure and to set it to be starting from 70 not zero
the original figue is shown below

I have used the following matlab code mentioned (https://www.mathworks.com/matlabcentral/answers/518832-how-can-i-set-an-axis-outside-the-polar-figure-like-this-photo?fbclid=IwAR1wv7SMdBdUkPmGRIYmzt_n9a8GOinZ1wyPHpxx4eAINHjF1DLoRu25Ofc)
figure(2)
set(gcf,'color','w');
ax = polaraxes('Position', [0.25 0.25 0.6 0.6])
polarplot (theta,splbn(21,:));
ax.ThetaDir = 'counterclockwise';
ax.ThetaZeroLocation = 'left';
rlim([70,120])
ax.RTickLabel = [];
ticks = [-flip(ax.RTick(2:end)) ax.RTick];
a = axes('Color', 'none',...
'XColor', 'none',...
'Position', ax.Position,...
'YLim', [-ax.RLim(2) ax.RLim(2)],...
'YTick', ticks,...
'YTickLabel', abs(ticks));
ylabel(a, 'r axis label')
the ouput of the code is shown below

how i can modify the axis to be sarting from 70 min of (rlim) not zero ?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Polar Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

