フィルターのクリア

Axis equal for geoaxes

17 ビュー (過去 30 日間)
Mia Hoffman
Mia Hoffman 2021 年 11 月 25 日
回答済み: Aditya 2024 年 2 月 23 日
Does anyone know the equivalent of "axis equal" for geoaxes and geoplots?

回答 (1 件)

Aditya
Aditya 2024 年 2 月 23 日
Hi Mia,
I understand you're looking for a way to achieve an aspect ratio equivalent to axis equal for your geographic plots in MATLAB. As of my knowledge, there is no direct equivalent of axis equal for geographic axes because they represent a curved surface (the Earth) on a 2D plane, which inherently involves distortion.
However, you can manually adjust the axis limits to control the map's visible area using the geolimits function. This approach allows you to specify the latitude and longitude limits but does not guarantee a uniform scale due to the varying distances that degrees of latitude and longitude represent at different locations on the globe.
Here's an example of how you can set the geographic limits:
% Define the geographic axes
ax = geoaxes;
% Set the latitude and longitude limits
geolimits(ax, [minLatitude maxLatitude], [minLongitude maxLongitude]);
Please replace minLatitude, maxLatitude, minLongitude, and maxLongitude with the desired limits for your geographic axes.
For more information on “geolimits” function, refer to the MATLAB documentation here:
I hope this information proves helpful to you!

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by