%% Rotate Polar Axes
% This example shows how to create a polar plot, change the location of the zero angle, and specify clockwise as the direction of increasing angles. It also shows how to reverse the direction of the r-axis.
%% Create Polar Plot
% Plot a line in polar coordinates.

theta = linspace(0,2*pi);
rho = 2*theta;
polarplot(theta,rho);

%
%% Change Zero Angle Location
% Use gca to access the polar axes. Change the zero angle location so that it points upwards.

pax = gca;
pax.ThetaZeroLocation = 'top';

%
%% Reverse Theta-Axis Direction
% Reverse the direction of the theta-axis so that the angles increase in the clockwise direction.

pax.ThetaDir = 'clockwise';

%
%% Reverse R-Axis Direction
% Reverse the direction of the r-axis so that the largest value is at the origin.

pax.RDir = 'reverse';

% Copyright 2012 The MathWorks, Inc.