geopcolor
Description
The geopcolor function creates a pseudocolor raster plot
from raster data with coordinates in any supported geographic or projected coordinate
reference system (CRS). You can create a pseudocolor raster plot in a geographic axes or a map
axes, which affects the map projection that the function uses to display the
data:
Geographic axes — A Web Mercator projection
Map axes — The projection specified by the
ProjectedCRSproperty of the map axes
Pseudocolor raster plots are useful for displaying data such as elevation, bathymetry, temperature, and precipitation.
geopcolor(___,
specifies properties of the pseudocolor plot using one or more name-value arguments in
addition to any combination of input arguments from the previous syntaxes. For a full list
of properties, see PseudocolorRaster Properties.Name=Value)
returns the
p = geopcolor(___)PseudocolorRaster object. Use p to set properties
after creating the pseudocolor plot. For a full list of properties, see PseudocolorRaster Properties.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Tips
To display a raster image that specifies color using RGB triplets, use the
geoimagefunction instead.If your raster data is referenced to coordinate locations instead of a raster reference object, then you must convert the coordinates to a reference object before using the
geopcolorfunction. For information about converting coordinates into reference objects, see Reference Regularly Spaced Raster Data Using Coordinates.
Alternative Functionality
A pseudocolor raster plot is a type of heatmap. Other types of heatmaps that you can create on maps include:
Choropleth maps, which display the values of numeric attributes within polygons. For an example, see Create Choropleth Map from Table Data.
Density plots, which display the relative distribution of points in latitude and longitude coordinates. For an example, see Visualize Density Using Geographic Density Plots.
Binned scatter plots, which partition points into bins and display the number of points in each bin. For an example, see Create Binned Scatter Plot from Latitude and Longitude Data.
Version History
Introduced in R2026a
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.










