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?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
rikshapiro
le 13 Août 2015
0 votes
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!