PyGMT v0.2.0 released

Announcing PyGMT v0.2.0, now using GMT 6.1.1 or newer!

The PyGMT team is excited to present version v0.2.0, our second minor release that is packed with new features from plotting beachball plots with meca to running crossover analysis with x2sys_cross. Note that this requires GMT 6.1.1 or newer which comes with bugfixes for xarray grids, and the new default pixel registration scheme for global earth relief grids. Here’s some noteworthy highlights:

  • Plotting xarray grids using grdimage and grdview should not crash anymore and works for most cases (#560)
  • Easier time-series plots with support for datetime-like inputs to plot (#464) and the region argument (#562)

The full list of changes can be found in the changelog. Installation instructions can be found at https://www.pygmt.org/v0.2.0/install.html, or you can try it online first at try-gmt! Also special shoutout to @tjnewton who worked with @liamtoney on the meca focal mechanism plotting function during the SciPy 2020 sprint, which you can see demonstrated at this meca gallery example!

Disclaimer: While plotting xarray grids should work in most cases without crashing, there are still some edge cases (e.g. when plotting across the dateline using certain projections) where they differ slightly from plots made using NetCDF grids (see longstanding issue at #390). This is likely an upstream issue that will be fixed in GMT 6.2.0, and we may get this in as a patch release for PyGMT v0.2.1.

Roadmap to v0.3.0

These are some aspirational features in progress.

As geoscientists, we want to make it easier for researchers to make beautiful, high quality plots. So if you’re keen, jump over to Github and leave your comment/upvote, or help us review/test things so that it works for your real-world dataset! Happy take questions here on the forum, or receive bug reports on our Github issue tracker.

Enjoy :partying_face:

2 Likes

Congrats to the PyGMT team! Keep holding the GMT C API Team’s feet to the fire.
Paul

2 Likes