GeoDensityPlot
✖
GeoDensityPlot
makes a geo density plot with colors at the location loci determined by the value vali.
Details and Options




- GeoDensityPlot is also known as a heat map and thematic map.
- GeoDensityPlot displays values at the given geo locations as smoothly varying colors over the map.
- The geographic locations loci can be given in the following forms:
-
GeoPosition[{lat,lon}] latitude and longitude Entity[…] geographic entity Dated[ent,date] dated entity - Multiple locations locs can be given in the following forms:
-
{loc1,loc2,…} list of individual locations GeoPosition[{pos1,pos2,…}] array of geo positions EntityClass[…] class of geo entities - The values vali can be given in the following forms:
-
vali positive number Quantity[vali,unit] magnitude with units - Multiple values vals can be given in the following forms:
-
{val1,val2,…} list of individual values QuantityArray[{val1,val2,…},unit] array of quantities - In GeoDensityPlot[data], data can be given in the following forms:
-
<loc1val1,loc2val2,… > association of keys and values GeoPosition[{{lat1,lon1,elev1},…}] geo positions with elevations as the values WeightedData[…] positions with weights for values {{val11,val12,…},…} gridded data with the geo range provided by DataRange - GeoDensityPlot has the same options as GeoGraphics, with the following additions and changes: [List of all options]
-
BoundaryStyle None how to draw RegionFunction boundaries BoxRatios Automatic effective 3D bounding box ratios ClippingStyle None how to draw values clipped by PlotRange ColorFunction Automatic how to color the plot ColorFunctionScaling True whether to scale the argument to ColorFunction DataRange Automatic the range of lat and lon values to assume for data InterpolationOrder None the polynomial degree in each variable of the interpolated density between data points LightingAngle None effective angle of the simulated light source MaxPlotPoints Automatic the maximum number of points to include Mesh None how many mesh lines in each direction to draw MeshFunctions {#1&,#2&} how to determine the placement of mesh lines MeshStyle Automatic the style for mesh lines Method Automatic the method to use for interpolation and data reduction PerformanceGoal $PerformanceGoal aspects of performance to try to optimize OpacityFunction Automatic how to compute the opacity at each point PlotLegends None legends for color gradients PlotTheme $PlotTheme overall theme for the plot RegionFunction (True&) how to determine whether a point should be included ScalingFunctions None how to scale individual coordinates - ColorFunction and OpacityFunction are supplied with a single argument, given by default by the scaled value of vali.
- Typical settings for OpacityFunction include:
-
Automatic automatically determined None no opacity function, fully opaque α constant opacity Opacity[α] Interval[…] make values in the interval more opaque func general opacity function - The arguments supplied to RegionFunction are lat, lon and val.
- The value of region in RegionFunction->region can be an entity or geo polygon over which to plot.
- DataRange takes a pair of geo locations to identify the latitude and longitude bounds for gridded values.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic BoundaryStyle None how to draw RegionFunction boundaries BoxRatios Automatic effective 3D bounding box ratios ClippingStyle None how to draw values clipped by PlotRange ColorFunction Automatic how to color the plot ColorFunctionScaling True whether to scale the argument to ColorFunction ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DataRange Automatic the range of lat and lon values to assume for data Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GeoBackground Automatic style specifications for the background GeoCenter Automatic center coordinates to use GeoGridLines None geographic grid lines to draw GeoGridLinesStyle Automatic style specifications for geographic grid lines GeoGridRange All projected coordinate range to include GeoGridRangePadding Automatic how much to pad the projected range GeoModel Automatic model of the Earth (or other body) to use GeoProjection Automatic projection to use GeoRange Automatic geographic area range to include GeoRangePadding Automatic how much to pad the geographic range GeoResolution Automatic average distance between background pixels GeoScaleBar None scale bar to display GeoServer Automatic specification of a tile server GeoZoomLevel Automatic zoom to use for geographic background GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic InterpolationOrder None the polynomial degree in each variable of the interpolated density between data points LabelStyle {} style specifications for labels LightingAngle None effective angle of the simulated light source MaxPlotPoints Automatic the maximum number of points to include Mesh None how many mesh lines in each direction to draw MeshFunctions {#1&,#2&} how to determine the placement of mesh lines MeshStyle Automatic the style for mesh lines MetaInformation {} meta-information about the map Method Automatic the method to use for interpolation and data reduction OpacityFunction Automatic how to compute the opacity at each point PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotLegends None legends for color gradients PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RasterSize Automatic raster dimensions for the background data RegionFunction (True&) how to determine whether a point should be included RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale individual coordinates Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks
List of all options




Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Plot data associated with geo locations:

https://wolfram.com/xid/0btn8doaxhpe-pg2eff

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

https://wolfram.com/xid/0btn8doaxhpe-ht9l8j

https://wolfram.com/xid/0btn8doaxhpe-ge56tk

Use a GeoPosition of locations with elevations around Crater Lake:

https://wolfram.com/xid/0btn8doaxhpe-w0btpt


https://wolfram.com/xid/0btn8doaxhpe-62ssge

Plot gridded values over a specified range of coordinates:

https://wolfram.com/xid/0btn8doaxhpe-d0o0u2

Scope (12)Survey of the scope of standard use cases
Data (7)
Use an Association with locations for keys and values for counts:

https://wolfram.com/xid/0btn8doaxhpe-dex0pq

https://wolfram.com/xid/0btn8doaxhpe-l7a1q

Use WeightedData:

https://wolfram.com/xid/0btn8doaxhpe-d60sox


https://wolfram.com/xid/0btn8doaxhpe-e15hiv

Locations can be given as entities or geo positions:

https://wolfram.com/xid/0btn8doaxhpe-hefxw4

https://wolfram.com/xid/0btn8doaxhpe-zonalp

GeoRange is selected automatically:

https://wolfram.com/xid/0btn8doaxhpe-exam4f

https://wolfram.com/xid/0btn8doaxhpe-rawkfx

Use GeoRange to focus on geographic areas of interest:

https://wolfram.com/xid/0btn8doaxhpe-xav0n

Use MaxPlotPoints to limit the number of points used:

https://wolfram.com/xid/0btn8doaxhpe-md94dr

https://wolfram.com/xid/0btn8doaxhpe-u6qsy

Use RegionFunction to restrict the density to a region:

https://wolfram.com/xid/0btn8doaxhpe-s9n4li

https://wolfram.com/xid/0btn8doaxhpe-dhqoa

Use discrete colors instead of smoothly shaded ones:

https://wolfram.com/xid/0btn8doaxhpe-5esk1d

https://wolfram.com/xid/0btn8doaxhpe-ow8cm8

Presentation (5)

https://wolfram.com/xid/0btn8doaxhpe-4lopfb


https://wolfram.com/xid/0btn8doaxhpe-wt7htg

Use a different geographical projection:

https://wolfram.com/xid/0btn8doaxhpe-kra0kv

Show the plot on a street map:

https://wolfram.com/xid/0btn8doaxhpe-fxyjd2


https://wolfram.com/xid/0btn8doaxhpe-4i415v

Use a theme with bright contours on a relief map:

https://wolfram.com/xid/0btn8doaxhpe-6ltogd

Options (55)Common values & functionality for each option
BoundaryStyle (3)
ColorFunction (2)
ColorFunctionScaling (1)
DataRange (1)
GeoBackground (2)
By default, geo density plots are shown on an unlabeled map:

https://wolfram.com/xid/0btn8doaxhpe-fqtp71

Use a relief map of the world:

https://wolfram.com/xid/0btn8doaxhpe-cfzvt8

Use a satellite image instead:

https://wolfram.com/xid/0btn8doaxhpe-tab0yp

GeoCenter (2)
GeoGridLines (2)
GeoGridLinesStyle (1)
GeoModel (2)
GeoProjection (2)
Use GeoProjection to view the map in the Robinson projection:

https://wolfram.com/xid/0btn8doaxhpe-j8lfuw

Use the Bonne projection instead:

https://wolfram.com/xid/0btn8doaxhpe-ox22no

GeoRange (3)
GeoRangePadding (4)
Use GeoRangePadding->None to remove padding:

https://wolfram.com/xid/0btn8doaxhpe-gdjfs5

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

https://wolfram.com/xid/0btn8doaxhpe-bzwyzh

Specify padding for latitude only:

https://wolfram.com/xid/0btn8doaxhpe-fme5qe

Specify different padding on each side of the map:

https://wolfram.com/xid/0btn8doaxhpe-ehh04

GeoScaleBar (3)
Show the plot with a scale bar in metric units:

https://wolfram.com/xid/0btn8doaxhpe-h433by

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

https://wolfram.com/xid/0btn8doaxhpe-uw6652

Place the scale bar in the top-right corner:

https://wolfram.com/xid/0btn8doaxhpe-ervhjq

GeoServer (2)
GeoZoomLevel (2)
Explicitly specify GeoZoomLevel to obtain a lower-resolution map rendering:

https://wolfram.com/xid/0btn8doaxhpe-f94znh

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

https://wolfram.com/xid/0btn8doaxhpe-hq9lij

InterpolationOrder (2)
MaxPlotPoints (2)
GeoDensityPlot normally uses all of the points in the dataset:

https://wolfram.com/xid/0btn8doaxhpe-md7smm

Limit the number of points used in each direction:

https://wolfram.com/xid/0btn8doaxhpe-j9d9p0

Mesh (1)
MeshFunctions (2)
MeshStyle (2)
OpacityFunction (4)
The opacity is automatically varied to highlight areas in the data:

https://wolfram.com/xid/0btn8doaxhpe-kl3bw7


https://wolfram.com/xid/0btn8doaxhpe-9frd4r


https://wolfram.com/xid/0btn8doaxhpe-gdoa12

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

https://wolfram.com/xid/0btn8doaxhpe-b2zrh2

PerformanceGoal (2)
PlotLegends (4)

https://wolfram.com/xid/0btn8doaxhpe-r6lohe


https://wolfram.com/xid/0btn8doaxhpe-s6n0i3

Legends automatically use the same colors as the density plot:

https://wolfram.com/xid/0btn8doaxhpe-mfe2qp

Use Placed to change legend placement:

https://wolfram.com/xid/0btn8doaxhpe-hfccwg

PlotTheme (1)
Applications (2)Sample problems that can be solved with this function
Show gridded population density on a map:

https://wolfram.com/xid/0btn8doaxhpe-jvkcn1


https://wolfram.com/xid/0btn8doaxhpe-72zsov


https://wolfram.com/xid/0btn8doaxhpe-eyglwp

Plot the strength of the Earth's geomagnetic field:

https://wolfram.com/xid/0btn8doaxhpe-hotnwk

https://wolfram.com/xid/0btn8doaxhpe-z0hcu3

https://wolfram.com/xid/0btn8doaxhpe-qsjvxg

Properties & Relations (10)Properties of the function, and connections to other functions
Draw contours on a map with GeoContourPlot:

https://wolfram.com/xid/0btn8doaxhpe-36jtol

Use ListDensityPlot for general data:

https://wolfram.com/xid/0btn8doaxhpe-8iifme

Use GeoBubbleChart to show values with scaled bubbles:

https://wolfram.com/xid/0btn8doaxhpe-2zuimi

https://wolfram.com/xid/0btn8doaxhpe-zbtuwp

Use GeoRegionValuePlot to show values with colored regions:

https://wolfram.com/xid/0btn8doaxhpe-s8d8l7

https://wolfram.com/xid/0btn8doaxhpe-3r0kyy

Use GeoHistogram to aggregate locations into bins:

https://wolfram.com/xid/0btn8doaxhpe-1hew1t

https://wolfram.com/xid/0btn8doaxhpe-k3ohaf

Use GeoSmoothHistogram to generate smooth densities from locations:

https://wolfram.com/xid/0btn8doaxhpe-v6zbbd

https://wolfram.com/xid/0btn8doaxhpe-wptz1e

Use GeoListPlot for individual locations:

https://wolfram.com/xid/0btn8doaxhpe-t15ofl

Use GeoVectorPlot and GeoStreamPlot for vector fields:

https://wolfram.com/xid/0btn8doaxhpe-skckb6

https://wolfram.com/xid/0btn8doaxhpe-msbrcl

Use GeoGraphValuePlot to show the values on geographic networks:

https://wolfram.com/xid/0btn8doaxhpe-3cdnt4

Plot relationships between geographic locations on a map:

https://wolfram.com/xid/0btn8doaxhpe-x9qufl

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
]}
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
]}