I need to draw a line on a globe from an anchor point to another point derfined by the cursor location. As I move the cursor to a new point I need to erase the first line and draw a new one. How do I use animated line to do this?
Mostrar comentarios más antiguos
if true
% code
end
% This used to work
% Erase old line if it exists
if (~isempty(linex));
line(linex, liney, 'Color','black', 'Erasemode','xor');
end
[linex, liney] = gcarc(lat, long, distance.lat, distance.long); % great circle arc line to be drawn
Respuesta aceptada
Más respuestas (1)
rikshapiro
el 13 de Ag. de 2015
0 votos
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!