MathWorks - Mobile View
  • Melden Sie sich bei Ihrem MathWorks Konto anMelden Sie sich bei Ihrem MathWorks Konto an
  • Access your MathWorks Account
    • Eigener Account
    • Mein Community Profil
    • Lizenz zuordnen
    • Abmelden
  • Produkte
  • Lösungen
  • Forschung und Lehre
  • Support
  • Community
  • Veranstaltungen
  • MATLAB erhalten
MathWorks
  • Produkte
  • Lösungen
  • Forschung und Lehre
  • Support
  • Community
  • Veranstaltungen
  • MATLAB erhalten
  • Melden Sie sich bei Ihrem MathWorks Konto anMelden Sie sich bei Ihrem MathWorks Konto an
  • Access your MathWorks Account
    • Eigener Account
    • Mein Community Profil
    • Lizenz zuordnen
    • Abmelden

Videos und Webinare

  • MathWorks
  • Videos
  • Videos Homepage
  • Suche
  • Videos Homepage
  • Suche
  • Vertrieb kontaktieren
  • Testsoftware
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Plot Geographic Data on a Map in MATLAB

Dan Seal, MathWorks

MATLAB® makes it easy to plot data on top of a geographic basemap inside a MATLAB figure. Learn how you can use geographic plotting functions in MATLAB to display points, lines, text, density plots, and bubble charts on top of geographic basemaps. Choose from a range of basemaps available in MATLAB or load specialized web maps from a range of third-party sources. And if you need to create more advanced maps, perform geodesy calculations, or work with geographic file types, check out Mapping Toolbox™. 

Geographic displays provide insight into data with latitude and longitude components. Though you could display your geographic data in MATLAB as a plot of x and y, it will look distorted and won’t contain any contextual information such as political boundaries, roads, and other geographic features.

In MATLAB, geographic base maps can provide this background context when plotting your geographic data. These are tiled, multi-resolution web maps that allow you to pan and zoom on different regions of your plot, automatically loading new base map imagery as you do so.

MATLAB makes it easy to plot data on top of a geographic base map inside a MATLAB figure. There are two types of geographic maps you can make in a MATLAB figure. The simplest is a plot in a geographic axes, which behaves much like a regular MATLAB axes. Use plotting functions along with the hold on command to mix points, lines, text, and density plots in one geoaxes. Here’s an example of this type of plotting. We’ll first use geodensityplot, geoplot, and geoscatter to visualize our density, line, and point data respectively. Then we can customize the view of the data, changing the basemap and the limits, and annotating the plot with text, a legend, and a title.

The second type of geographic map in MATLAB is a geographic bubble chart, which can indicate a continuous variable by bubble size and a categorical variable by bubble color. This is a specialized chart type providing both bubble and categorical legends. 

MATLAB’s base maps for global and regional scales are loaded from the web by default, but the data can also be downloaded from MATLAB Add-Ons to be used without an internet connection. Web maps with street-level data, topography, or other specialized base layer representations can be loaded from third-party sources. You can easily add web maps from a range of third-party sources using the addCustomBasemap function, available in Mapping Toolbox.

These functions for overlaying latitude and longitude data on web map base layers are available in MATLAB. If you need to go further, Mapping Toolbox provides additional functions for visualizing data in other projected coordinate systems, converting between systems, and performing geodesy calculations such as calculating distances and areas. Mapping Toolbox also allows you to read and write data between different types of standard geographic file types such as shapefiles, GPX files, and GeoTIFF files.

Related Products

  • MATLAB
  • Mapping Toolbox

Feedback

Featured Product

MATLAB

  • Request Trial
  • Get Pricing

Up Next:

2:10
Surface Plot of Nonuniform Data

Related Videos:

2:59
How to Label a Series of Points on a Plot in MATLAB
2:05
Polar Surface Plot in MATLAB
3:15
Technical Computing with MATLAB, Part 3: Plot Tools for...
32:03
Lean Data Analysis: The Awesome Data Dexterity of MATLAB...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

Select web site

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Vertrieb kontaktieren
  • Testsoftware

Produkte

  • MATLAB
  • Simulink
  • Software für Studierende
  • Hardware-Unterstützung
  • File Exchange

Testen oder Kaufen

  • Downloads
  • Testsoftware
  • Vertrieb kontaktieren
  • Preise und Lizenzierung
  • Store

Lernen

  • Dokumentation
  • Tutorials
  • Beispiele
  • Videos und Webinare
  • Schulungen

Support

  • Hilfe zur Installation
  • Antworten
  • Consulting
  • License Center
  • Support kontaktieren

Über MathWorks

  • Jobs & Karriere
  • Newsroom
  • Social Mission
  • Vertrieb kontaktieren
  • Über MathWorks

MathWorks

Accelerating the pace of engineering and science

MathWorks ist der führende Entwickler von Software für mathematische Berechnungen für Ingenieure und Wissenschaftler.

Entdecken Sie…

  • Select a Web Site United States
  • Patente
  • Handelsmarken
  • Datenschutz
  • Datendiebstahl verhindern
  • Status von Anwendungen

© 1994-2021 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Folgen Sie uns

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic.  By continuing to use this website, you consent to our use of cookies.  Please see our Privacy Policy to learn more about cookies and how to change your settings.