API reference

Plotting utilities

create_colorbar_axes(ax, *[, location, ...])

Create an axes suitable for a colorbar next to a given axes.

legend_patches(colors, labels, *[, ...])

Create legend handles for categorical data.

add_gridlines(ax, lines, *[, color, ...])

Add gridlines to a map axes.

add_ticks(ax, ticks, *[, formatter, ...])

Add tick labels to a map axes and return a Gridliner object for further styling.

plot_world(bounds[, bounds_projection])

Plot a world map with specified bounding box highlighted.

Plotting functions

Plotting rasters

plot_raster(m, *[, ax, bins, norm, vmin, ...])

Plot a 2D scalar or 3D RGB(A) raster.

plot_classified_raster(m, *[, levels, ...])

Plot a 2D raster with discrete classes.

Plotting shapes

plot_shapes([df, lat, lon, values, s, bins, ...])

Plot shapes with continuous numeric values (scalar choropleth).

plot_classified_shapes([df, lat, lon, ...])

Plot discrete-class shapes (choropleth style).

Integrated plotting functions

Rioxarray

da_plot_raster(self, *[, ax, cartopy])

Plot raster data from a DataArray using Matplotlib or Cartopy.

da_plot_classified_raster(self, *[, ax, cartopy])

Plot classified raster data from a DataArray using Matplotlib or Cartopy.

da_plot_world(self)

Plot the bounding box of a DataArray on a world map.

Geopandas

gpd_plot_shapes(self, *[, ax, cartopy])

Plot geometries from a GeoDataFrame or GeoSeries using Matplotlib or Cartopy.

gpd_plot_classified_shapes(self, *[, ax, ...])

Plot classified geometries from a GeoDataFrame or GeoSeries using Matplotlib or Cartopy.

gpd_plot_world(self)

Plots the outer bounds of a GeoDataFrame on a world map.