how to get the axes properties set from a polar plot handle?

1 次查看(过去 30 天)
Hi,
I´m trying to make a polar plot in a gui where the radial axis is meant to stay fixed and a couple of points will update every time a push a button. I´ve done this before with plots using the 'xdata' and 'ydata' properties but this does not seems to work for polar plot.
%initialization
theta = linspace(0,2*pi,100);
r = sin(2*theta) .* cos(2*theta);
r_max = max_range;
h_fake = polar(theta,r_max*ones(size(theta)));
set(h_fake, 'Visible', 'Off');
hold on
% plot a circle at pi/2, 2000
handles.tgt = polar(pi/2,2000,'o');
handles.lala = 0.1;
.
.
.
% button callback
function start_Callback(hObject, eventdata, handles)
handles.lala = handles.lala + 0.1*pi/180;
set(handles.tgt,'xdata',pi/2+handles.lala);
set(handles.tgt,'ydata',2000);
% Update handles structure
guidata(hObject, handles);
can anyone help me? thanks a lot.

回答(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