Skip to main content

pygmt helper package

This package contains a set of helper functions for pygmt that allow for easy generation of NZ based spatial plots. Additionally, it also contains some functionality to generate some common plots, such as IM plots or fault traces plot.

The aim of this package is to make the common steps of creating a pygmt based spatial plot easy, for specific details the user can also add in some pygmt calls directly.

Installation

Follow the installation instructions from pygmt. Then install this package via pip.

Run-Time

Running with NZ specific map data will result in much longer plotting times. Therefore, it is recommended to just it to None when iterating on the plot and only enable it for the final version. Same applies for the high_res_topo option when loading the map data.

General usage

import pandas as pd

from pygmt_helper import plotting

# Load some spatial data
# with columns lat, lon, key
# where key is whatever you want to plot
data_df = pd.read_csv("bla")

# Create figure
fig = plotting.gen_region_fig("Title")

# Interpolate
grid = plotting.create_grid(data_df, "key")

# Plot the grid
plotting.plot_grid(fig, grid, "hot", (0, 10, (10 - 0) / 10))

# Add anything else to plot
# via pygmt
...

# Save the figure
fig.savefig(
    "/path_to_somwhere/figure.png",
    dpi=900,
    anti_alias=True,
)

Examples

The example folder contains multiple complete examples plots.

Metadata

Release files for pygmt-helper 2026.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygmt-helper 2026.6.1
File Size Uploaded Provenance Actions
pygmt_helper-2026.6.1.tar.gz 55.8 MB With provenance Details for pygmt_helper-2026.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygmt-helper 2026.6.1
File Interpreter ABI Platform Actions
pygmt_helper-2026.6.1-py3-none-any.whl Python 3 none any Details for pygmt_helper-2026.6.1-py3-none-any.whl

Total release size: 111.9 MB

Release files / pygmt_helper-2026.6.1.tar.gz

Download URL pygmt_helper-2026.6.1.tar.gz
Size 55.8 MB
Tags Source
SHA-256 checksum
How to use checksums
482253f10480b3af3ac4a13b59298c24d4ebce60f4ba0cced967181281340b9c
BLAKE2b-256 checksum
How to use checksums
ac98aae8f116471c3efb657bdaa4d5924886c7d0819d03b40eb06e1d8bbddb37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.

Transparency log

Release files / pygmt_helper-2026.6.1-py3-none-any.whl

Download URL pygmt_helper-2026.6.1-py3-none-any.whl
Size 56.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
294be17bb068a5cc58325680286c79cec6bf54f2d5b0740035268d1c3b70aba8
BLAKE2b-256 checksum
How to use checksums
04b1711b6c1524bbb208a50e168ec4d7614811d560376f5350b9b76845c33020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.

Transparency log

Security for pygmt-helper 2026.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pygmt_helper-2026.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page