Aspect Ratio for geoaxes
Show older comments
I am trying to set the data aspect ratio for a geoaxes() similar to doing axis equal or axis square in a regular axes(). Any guidance would be appreciated.
Answers (1)
AKennedy
on 15 Feb 2024
0 votes
Hi Mia,
In MATLAB, for a “geoaxes” object, you cannot directly set an equal data aspect ratio like axis equal due to the nature of map projections. However, you can
- Try to approximate aspect ratio by setting equal latitude and longitude ranges with “MapLatLimit” and “MapLonLimit”.
- Use “daspectm('m',1)” to adjust the meridian-to-parallel distance ratio, though it may not be perfect.
- For precise 1:1 distance ratio, consider an azimuthal projection for small areas.
You can also refer to the links below.
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!