WOLFRAM

GeoDensityPlot[{loc1val1,loc2val2,}]

makes a geo density plot with colors at the location loci determined by the value vali.

GeoDensityPlot[locsvals]

uses a collection of locations locs with corresponding values vals.

Details and Options

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

Plot data associated with geo locations:

Out[1]=1

Plot the temperature for cities near Austin, TX, with a legend:

Out[2]=2

Use a GeoPosition of locations with elevations around Crater Lake:

Out[1]=1
Out[2]=2

Plot gridded values over a specified range of coordinates:

Out[1]=1

Scope  (12)Survey of the scope of standard use cases

Data  (7)

Use an Association with locations for keys and values for counts:

Out[7]=7

Use WeightedData:

Out[1]=1
Out[2]=2

Locations can be given as entities or geo positions:

Out[2]=2

GeoRange is selected automatically:

Out[2]=2

Use GeoRange to focus on geographic areas of interest:

Out[3]=3

Use MaxPlotPoints to limit the number of points used:

Out[2]=2

Use RegionFunction to restrict the density to a region:

Out[2]=2

Use discrete colors instead of smoothly shaded ones:

Out[2]=2

Presentation  (5)

Add labels and legends:

Out[2]=2

Color the density by hue:

Out[1]=1

Use a different geographical projection:

Out[1]=1

Show the plot on a street map:

Out[1]=1

Use a satellite map:

Out[2]=2

Use a theme with bright contours on a relief map:

Out[1]=1

Options  (55)Common values & functionality for each option

BoundaryStyle  (3)

No boundary is used by default:

Out[1]=1

Use a red boundary around the edges:

Out[1]=1

Outline the region being plotted:

Out[1]=1

ColorFunction  (2)

Color by scaled value:

Out[1]=1

Named color gradients color in the direction:

Out[1]=1

ColorFunctionScaling  (1)

Color values below 300 blue, and other values red:

Out[1]=1

DataRange  (1)

Specify latitude and longitude ranges for an array of values:

Out[5]=5

GeoBackground  (2)

By default, geo density plots are shown on an unlabeled map:

Out[1]=1

Use a relief map of the world:

Out[1]=1

Use a satellite image instead:

Out[2]=2

GeoCenter  (2)

Maps are automatically centered based on the data:

Out[4]=4

Specify a specific location for the center of the map:

Out[1]=1

GeoGridLines  (2)

Overlay a map with geo grid lines using the default styling:

Out[1]=1

Draw geo grid lines at specific lines of latitude and longitude:

Out[1]=1

GeoGridLinesStyle  (1)

Specify the overall geo grid line style:

Out[1]=1

GeoModel  (2)

Use the default (ellipsoidal) model of the Earth:

Out[1]=1

Use the Moon as reference model:

Out[2]=2

GeoProjection  (2)

Use GeoProjection to view the map in the Robinson projection:

Out[2]=2

Use the Bonne projection instead:

Out[1]=1

GeoRange  (3)

The geographic region to show is automatically determined:

Out[1]=1

Specify the region to show:

Out[1]=1

Specify the corners of the geo range:

Out[1]=1

GeoRangePadding  (4)

Use GeoRangePadding->None to remove padding:

Out[1]=1

Use 250 kilometers of padding on each side of the map:

Out[1]=1

Specify padding for latitude only:

Out[1]=1

Specify different padding on each side of the map:

Out[1]=1

GeoScaleBar  (3)

Show the plot with a scale bar in metric units:

Out[1]=1

Show the plot with a scale bar in metric and imperial units:

Out[1]=1

Place the scale bar in the top-right corner:

Out[1]=1

GeoServer  (2)

Use the Wolfram geo server to download map tiles:

Out[1]=1

Specify explicitly some of the parameters of the tile server:

Out[1]=1

GeoZoomLevel  (2)

Explicitly specify GeoZoomLevel to obtain a lower-resolution map rendering:

Out[1]=1

Explicitly specify GeoZoomLevel to obtain a higher-resolution map rendering:

Out[1]=1

InterpolationOrder  (2)

Contours are normally based on a linear interpolation of the data:

Out[1]=1

Use zero-order or piecewise constant interpolation:

Out[1]=1

MaxPlotPoints  (2)

GeoDensityPlot normally uses all of the points in the dataset:

Out[1]=1

Limit the number of points used in each direction:

Out[1]=1

Mesh  (1)

Use five mesh levels of val:

Out[2]=2

Use 25:

Out[4]=4

MeshFunctions  (2)

Use mesh lines in the and directions:

Out[1]=1

Use mesh lines in the val direction:

Out[1]=1

MeshStyle  (2)

Use red mesh lines:

Out[1]=1

Use red mesh lines in the direction and dashed mesh lines in the direction:

Out[1]=1

OpacityFunction  (4)

The opacity is automatically varied to highlight areas in the data:

Out[8]=8

Use fully opaque colors:

Out[1]=1

Use constant 60% opacity:

Out[1]=1

Use increasing opacity for the lowest quartile and full opacity for the rest:

Out[1]=1

PerformanceGoal  (2)

Generate a higher-quality plot:

Out[1]=1

Emphasize performance, possibly at the cost of quality:

Out[1]=1

PlotLegends  (4)

No legend is used by default:

Out[1]=1

Include a legend:

Out[1]=1

Legends automatically use the same colors as the density plot:

Out[1]=1

Use Placed to change legend placement:

Out[1]=1

PlotTheme  (1)

Use a theme with bright contours on a relief map:

Out[3]=3

Use a satellite map for the background:

Out[1]=1

RegionFunction  (3)

Plot only certain ranges of values:

Out[1]=1

Plot over a region in and :

Out[1]=1

Use an entity region:

Out[1]=1

Applications  (2)Sample problems that can be solved with this function

Show gridded population density on a map:

Out[2]=2
Out[1]=1
Out[3]=3

Plot the strength of the Earth's geomagnetic field:

Out[3]=3

Properties & Relations  (10)Properties of the function, and connections to other functions

Draw contours on a map with GeoContourPlot:

Out[1]=1

Use ListDensityPlot for general data:

Out[1]=1

Use GeoBubbleChart to show values with scaled bubbles:

Out[2]=2

Use GeoRegionValuePlot to show values with colored regions:

Out[2]=2

Use GeoHistogram to aggregate locations into bins:

Out[2]=2

Use GeoSmoothHistogram to generate smooth densities from locations:

Out[2]=2

Use GeoListPlot for individual locations:

Out[1]=1

Use GeoVectorPlot and GeoStreamPlot for vector fields:

Out[2]=2

Use GeoGraphValuePlot to show the values on geographic networks:

Out[1]=1

Plot relationships between geographic locations on a map:

Out[1]=1
Wolfram Research (2020), GeoDensityPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDensityPlot.html.
Wolfram Research (2020), GeoDensityPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDensityPlot.html.

Text

Wolfram Research (2020), GeoDensityPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDensityPlot.html.

Wolfram Research (2020), GeoDensityPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDensityPlot.html.

CMS

Wolfram Language. 2020. "GeoDensityPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoDensityPlot.html.

Wolfram Language. 2020. "GeoDensityPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoDensityPlot.html.

APA

Wolfram Language. (2020). GeoDensityPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDensityPlot.html

Wolfram Language. (2020). GeoDensityPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDensityPlot.html

BibTeX

@misc{reference.wolfram_2025_geodensityplot, author="Wolfram Research", title="{GeoDensityPlot}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/GeoDensityPlot.html}", note=[Accessed: 21-April-2025 ]}

@misc{reference.wolfram_2025_geodensityplot, author="Wolfram Research", title="{GeoDensityPlot}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/GeoDensityPlot.html}", note=[Accessed: 21-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_geodensityplot, organization={Wolfram Research}, title={GeoDensityPlot}, year={2020}, url={https://reference.wolfram.com/language/ref/GeoDensityPlot.html}, note=[Accessed: 21-April-2025 ]}

@online{reference.wolfram_2025_geodensityplot, organization={Wolfram Research}, title={GeoDensityPlot}, year={2020}, url={https://reference.wolfram.com/language/ref/GeoDensityPlot.html}, note=[Accessed: 21-April-2025 ]}