gplately.PygmtPlotEngine

class gplately.PygmtPlotEngine[source]

Bases: PlotEngine

Use pygmt for map plotting

__init__()[source]

Methods

__init__()

plot_geo_data_frame(ax_or_fig, gdf, **kwargs)

Use pygmt to plot geometries in a GeoDataFrame object onto a map

plot_pygplates_features(ax_or_fig, features, ...)

Not implemented yet

plot_subduction_zones(ax_or_fig, ...[, color])

Use pygmt to plot subduction zones with "teeth"

plot_geo_data_frame(ax_or_fig, gdf: GeoDataFrame, **kwargs)[source]

Use pygmt to plot geometries in a GeoDataFrame object onto a map

Parameters:
  • ax_or_fig (pygmt.Figure()) – pygmt Figure object

  • gdf (GeoDataFrame) – GeoPandas GeoDataFrame object

  • edgecolor (str) – For polygons, it is the border colour. For polylines, it is the line colour. Currently, only colour names are tested and officially supported, for example, “red”, “blue”, etc.

  • facecolor (str) – The colour used to fill the polygon.

  • fill (str) – GMT “fill” parameter

  • pen (str) – GMT “pen” parameter

  • style (str) – GMT “style” parameter

  • gmtlabel (str) – GMT “label” parameter

plot_pygplates_features(ax_or_fig, features, **kwargs)[source]

Not implemented yet

plot_subduction_zones(ax_or_fig, gdf_subduction_left: GeoDataFrame, gdf_subduction_right: GeoDataFrame, color='blue', **kwargs)[source]

Use pygmt to plot subduction zones with “teeth”

Parameters:
  • ax_or_fig (pygmt.Figure()) – pygmt Figure object

  • gdf_subduction_left (GeoDataFrame) – subduction zone with “left” polarity

  • gdf_subduction_right (GeoDataFrame) – subduction zone with “right” polarity

  • color (str) – The colour used to fill the “teeth”.

  • gmtlabel (str) – GMT “label” parameter