gplately.PygmtPlotEngine
- class gplately.PygmtPlotEngine[source]
Bases:
PlotEngine
Use pygmt for map plotting
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