Displaying latitude and longitude on grid lines
Afficher commentaires plus anciens
Hi,
I have an ortho map projection with latitude and longitude grid lines and I want to display the degrees of latitude and longitude on the x and y axes. I have tried using axesm but it just alters the range of the axes which I don't want to change.
Here is my coding:
-----------
load coast
figure;
axesm('MapProjection','ortho','origin',[-20,-75])
framem
plotm(lat,long,'k')
gridm
[gLat,gLon]=meshgrid(-20:-1:20,0:359);
plotm(lat_A,lon_A,'r')
hold on
plotm(lat_B,lon_B,'b')
hold on
plotm(lat_C,lon_C,'g')
xlabel('{\bfLongitude [degrees]}')
ylabel('{\bfLatitude [degrees]}')
title ('{\bfFlight Track}')
----------
Thanks
1 commentaire
Anna
le 3 Août 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Map Customization 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!