How to change vertical alignment on worldmap figure?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lee
le 16 Sep 2019
Réponse apportée : Ajay Pattassery
le 19 Sep 2019
I am using the Mapping Toolbox to make a figure. My code looks roughly like this:
load korea
worldmap(map, refvec)
setm(gca,'MapProjection','mercator')
The default "x-axis" / settings for the longitude has a default VerticalAlignment set as "top". I want to change the VerticalAlignment to "baseline". I can do this by hand by editing the plot but I want to do this in a line of code. Can anyone help me?
0 commentaires
Réponse acceptée
Ajay Pattassery
le 19 Sep 2019
The following code will move the meridian (longitude) labels to ‘baseline’ position.
load korea
map_axis = worldmap(map, refvec)
setm(gca,'FLineWidth',3,'Grid','on','MapProjection','robinson');
long_labels = mlabel('on');
for i=1:length(long_labels)
long_labels(i).VerticalAlignment = 'baseline';
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Polar Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!