how to insert graphic scale in geographic map??

조회 수: 3 (최근 30일)
Eugenia Aedo Maldonado
Eugenia Aedo Maldonado 2021년 2월 19일
답변: Alan Moses 2021년 2월 22일
Hello everyone, I need to insert the graphic scale of a map and it is not displayed I have this code but the vectors of the quiverm command are not displayed
clc
clear
Input = load ('INTENT2.txt');
lat = Input (:, 1);
lon = Input (:, 2);
deltalat = Input (:, 3);
deltalon = Input (:, 4);
axesm ('mercator', 'MapLatLimit', [- 60 60], 'MapLonLimit', [- 120 120])
hold on
quiverm (lat, lon, deltalat, deltalon)
hold on
% Create a Geographic Axes.
gx = geoaxes
% Get the GeographicScalebar object.
sb = gx.Scalebar
hold on
% Set a GeographicScalebar object property.
gx.Scalebar.Visible = 'on';
geobasemap ('colorterrain')
Does anyone know how I can program the graphic scale? I am trying to make a velocity field with input data: latitude, longitude, delta latitude and delta longitude
Thank you

답변 (1개)

Alan Moses
Alan Moses 2021년 2월 22일
The quiverm function plots into the map axes. But the geobasemap function plots into the geographic axes. Instead, you may use the annotation function to plot on the geographic axes. You may also find a similar explanation here in the “Comments” section.

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by