How to modify font size in a miller projection map?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Wondering how to modify the font size of the text for the longitudes in a miller projection map?
Thanks!
0 件のコメント
回答 (1 件)
Walter Roberson
2018 年 9 月 18 日
編集済み: Walter Roberson
2018 年 9 月 18 日
Example,
NewSize = 7; %default is typically 10
landareas = shaperead('landareas.shp','UseGeoCoords',true);
ax = axesm ('miller', 'Frame', 'on', 'Grid', 'on');
geoshow(landareas,'FaceColor',[1 1 .5],'EdgeColor',[.6 .6 .6]);
mlabel on
set( findobj(ax.Children, 'Tag', 'MLabel'), 'FontSize', NewSize)
Note that this will probably end up shifting the positions of the labels. With the default meridian labels at the top of the graph, the text is generated with VerticalAlignment 'bottom', but with positions just outside the axes. Effectively the text position has been set to have its bottom at the top of the box. If you wanted the text to move further away from the top of the axes box, then the Position properties would need to be changed.
3 件のコメント
Walter Roberson
2018 年 9 月 18 日
Could you give example code that creates the labels at the center of the world map?
To change to every 60 degrees try
mlabel('MLabelLocation', 60)
参考
カテゴリ
Help Center および File Exchange で Map Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!