how to get the axes properties set from a polar plot handle?
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
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!