I am using the compass plot function using octave 3.8.1 Linux to plot a circular data set but I have difficulties changing the axis of this plot.
Specifically, I would like to remove some of the axis points (say for example the 30 and 60 degrees) and also I would like to change numbers (for example instead of 90 write 30).
Does anyone have an idea of how this can be done?
Example of code: Along with image it produces
%compass plot
clear all,clc
x_angle=[45,90,123,43,53,23,53,12];
y_amp=[1,.5,.4,.1,.6,.3,.7,.3];
[x_cart,y_cart]=pol2cart([x_angle-180]*pi/180,y_amp);
h = compass(x_cart,y_cart);
for k = 1:length(x_cart)
a_x = get(h(k), 'xdata');
b_y = get(h(k), 'ydata');
%//To delete the arrows you need to delete all but the first two entries
%//in the xdata and ydata fields of the plot. The color can be changed
%//by setting the color property. Please find below a solution for
%//compass plots with arbitrary numbers of arrows.
set(h(k), 'xdata', a_x(1:2), 'ydata', b_y(1:2), 'color', 'r')
end;
