%% Create Geographic Scatter Plot Specifying Basemap
% Set up latitude and longitude data.

lon = (-170:10:170);
lat = 50 * cosd(3*lon);

%
% Define the data that controls the area of each marker.

A = 101 + 100*(sind(2*lon));

%
% Define the data that controls the color of each marker.

C = cosd(4*lon);

%
% Create the scatter plot on a set of geographic axes, specifying the marker size data and the color data. The example specifies the marker as a triangle, rather than the default circle.

geoscatter(lat,lon,A,C,'^')

%
% Change the basemap of the geographic scatter plot.

geobasemap colorterrain

%
% Copyright 2018 The MathWorks, Inc.