This repository contains the Jupyter notebooks and supporting data used to generate the figures presented in the PyGMT paper.
Fig1_PyGMT_GMT_comparison.ipynb: Example comparison of GMT CLI (Bash) and PyGMT (Python) scriptsFig2_PyGMT_ecosystem.ipynb: The PyGMT ecosystemFig3_PyGMT_backgrounds.ipynb: Different types of geographic background base maps of IcelandFig4_PyGMT_pandas.ipynb: Seismicity along the Andaman-Sumatra-Java Subduction ZoneFig5_PyGMT_xarray.ipynb: Hemispherical views of long-wavelength Mars topographyFig6_PyGMT_geopandas.ipynb: Choropleth map of the population in the USFig7_PyGMT_datetime.ipynb: GitHub star history of GMT and the wrappersstar_history_github_*.csv: Cached GitHub stars data used by Figure 7
These notebooks require a development version of PyGMT. The environment definition
in environment.yml currently installs PyGMT from TestPyPI:
- GMT:
6.6.0 - pygmt:
0.19.0.dev100
Create and activate the environment:
conda env create -f environment.yml
conda activate pygmt-paper-figuresFig1_PyGMT_GMT_comparison.ipynb and Fig2_PyGMT_ecosystem.ipynb depend on PyGMT
features that are available on specific development branches which are not merged into
the main branch of PyGMT yet.
Install the matching branch before running each notebook:
Fig1_PyGMT_GMT_comparison.ipynb: requires thefeature/paragraphbranch
pip install --force-reinstall "git+https://github.com/GenericMappingTools/pygmt.git@feature/paragraph"Fig2_PyGMT_ecosystem.ipynb: requires thecode-pygmt-logobranch
pip install --force-reinstall "git+https://github.com/GenericMappingTools/pygmt.git@code-pygmt-logo"Start JupyterLab inside the activated environment:
jupyter labThen open the notebooks and run them within the pygmt-paper-figures environment.
- The notebooks expect GMT to be available through the same environment.
- Some figures download remote resources or rely on online datasets.
- Figure outputs are typically saved as PNG files from within the notebooks.