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?
Show older comments
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
Accepted Answer
More Answers (1)
rikshapiro
on 13 Aug 2015
0 votes
Categories
Find more on Graphics Performance 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!