changing map projection after plotting data
显示 更早的评论
I can initialize a map, set its projection properties with axesm, and plot data. This works well. If I plot data then try to change the map projection by setting axesm, my map does not update to the new projection. Typing getm(gca) shows that indeed, Matlab thinks my map is in the new projection, but my figure does not show it. Is there a trick to changing projection after data are plotted?
回答(1 个)
Kelly Kearney
2014-9-4
0 个投票
I've found it's really a coin toss... sometimes, changing properties like projection, map limits, etc. actually reprojects the existing plotting data correctly, and sometimes it doesn't. I've never figured out a pattern to why it sometimes works and sometimes doesn't. Except that of course toy examples usually work, and figures using real data from my research usually don't.
类别
在 帮助中心 和 File Exchange 中查找有关 Mapping Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!