How to change vertical alignment on worldmap figure?
3 views (last 30 days)
I am using the Mapping Toolbox to make a figure. My code looks roughly like this:
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?
Ajay Pattassery on 19 Sep 2019
The following code will move the meridian (longitude) labels to ‘baseline’ position.
map_axis = worldmap(map, refvec)
long_labels = mlabel('on');
long_labels(i).VerticalAlignment = 'baseline';
mlabel corresponds to the meridian labels.