maps.charts.subplots

Module Contents

Classes

Subplot

An individual set of axes onto which one or more layer can be plotted.

class maps.charts.subplots.Subplot(chart, *args, domain=None, domain_crs=None, crs=None, **kwargs)

An individual set of axes onto which one or more layer can be plotted.

property crs_name
property distinct_legend_layers

Layers on this subplot which have a unique Style.

property domain_name
property fig
shaded_contour
barbs(*args, style=None, **kwargs)
borders(*args, resolution='auto', labels=False, label_kwargs=None, **kwargs)

Add country boundary polygons from Natural Earth.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

cities(*args, density='medium', color='black', capitals_only=False, adjust_labels=True, **kwargs)
coastlines(*args, resolution='auto', **kwargs)

Add coastal outlines from the Natural Earth “coastline” collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

contour(*args, style=None, **kwargs)
contourf(*args, style=None, **kwargs)
format_string(string, unique=True, grouped=True)
classmethod from_data(chart, data, *args, domain=None, crs=None, **kwargs)
gridlines(*args, xstep=None, xref=0, ystep=None, yref=0, **kwargs)

Add gridlines to the subplot.

Parameters:
  • xstep (float, optional) – The step/difference between each x gridline.

  • xref (float, optional) – The reference point around which to calibrate the x level range.

  • ystep (float, optional) – The step/difference between each y gridline.

  • yref (float, optional) – The reference point around which to calibrate the y level range.

Note

Any keyword arguments accepted by cartopy’s gridlines method can be used when adding gridlines.

image(img, extent, origin='upper', transform=None)
lakes(*args, resolution='50m', **kwargs)

Add lake polygons from the Natural Earth collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

land(*args, resolution='auto', **kwargs)

Add land polygons from the Natural Earth collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

legend(*args, **kwargs)
ocean(*args, resolution='auto', **kwargs)

Add ocean polygons from the Natural Earth collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

pcolormesh(*args, style=None, **kwargs)
plot(data, *args, **kwargs)
plot_gridded_scalar()

Decorator for transforming input data into plottable components.

Parameters:

method (method) – The method for which to transform input parameters to plottable components.

plot_gridded_vector()

Decorator for transforming input data into plottable components.

Parameters:

method (method) – The method for which to transform input parameters to plottable components.

rivers(*args, resolution='auto', **kwargs)

Add ocean polygons from the Natural Earth collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

scatter(*args, style=None, **kwargs)
shapes(shapes, *args, transform=ccrs.PlateCarree(), adjust_labels=False, labels=False, **kwargs)
states_provinces(*args, resolution='auto', labels=False, adjust_labels=False, **kwargs)

Add country boundary polygons from Natural Earth.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.

stock_img(*args, **kwargs)
title(label=None, unique=True, wrap=True, **kwargs)
urban_areas(*args, resolution='50m', **kwargs)

Add urban area polygons from the Natural Earth collection.

Parameters:

resolution ((str, optional)) – One of “low”, “medium” or “high”, or a named resolution from the Natrual Earth dataset.