%% Display 'darkwater' on Geographic Plots
% To display the 'darkwater' basemap while plotting with functions such as geoplot and geoscatter, call geobasemap.

lat1 = [33.448 29.424 32.716 32.777 37.338];
lon1 = [-112.074 -98.494 -117.161 -96.797 -121.886];
geoscatter(lat1,lon1,'*')
geobasemap darkwater

%
% Alternatively, you can create a set of geographic axes and specify the Basemap name-value pair. To maintain the basemap, use the hold on command before plotting.

figure
lat2 = [40.713 34.052 41.878 29.760 39.952];
lon2 = [-74.006 -118.244 -87.630 -95.370 -75.165];
geoaxes('Basemap','darkwater')
hold on
geoscatter(lat2,lon2,'*')

%
% You can also change the default basemap for all plots created with geoplot, geoscatter, and geodensityplot during your MATLAB session.

set(groot,'defaultGeoaxesBasemap','darkwater')

% Copyright 2019 The MathWorks, Inc.