Assign a colormap to a geoglobe plot
18 views (last 30 days)
Show older comments
Marc Jakubowicz
on 10 Dec 2024
Commented: Peter
on 12 Dec 2024
Hello
I have flight data from my drone: longitude, latitude, altitude.
I would like to put a flight profile on geoglobe.
I manage to get a result, nevertheless the flight tracing is of a single color.
I would like this line to correspond to the altitude or to altitude steps by using, for example, a colormap.
I couldn't figure out how to change the color on this chart and this is the first time I've used the uifigure.
Thank you :)
my code :
uif = uifigure("Name","Vol drone sur cartographie 3D");
uif.Position = [1320 100 1280 1080];
g = geoglobe(uif);
geoplot3(g,lat,lon,alt_abs,'LineWidth',4,'color','y')

0 Comments
Accepted Answer
Walter Roberson
on 10 Dec 2024
Any one geoplot3() call results in a single line of constant color. There is no way to have the single line be multiple colors or interpolated colors.
You will need to call geoplot3() several times, each time drawing a different (constant) color. For any one segment, it is not possible to do color interpolation.
4 Comments
More Answers (0)
See Also
Categories
Find more on Geographic 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!
