Skip to content

Releases

v0.19.0

Choose a tag to compare

@github-actions github-actions released this 07 Jul 15:08
fb1ec7d

Release v0.19.0 (2026/07/07)

Digital Object Identifier for PyGMT v0.19.0

Highlights

  • A PyGMT paper has been accepted for publication in Geochemistry, Geophysics, Geosystems.
    The citation is as follows:

    Tian, D., Frรถhlich, Y., Leong, W. J., Grund, M., Schlitzer, W., Jones, M., Uieda, L., Luis, J. M. F. (2026).
    PyGMT: Bridging Python and the Generic Mapping Tools for Geospatial Visualization and Analysis.
    Geochemistry, Geophysics, Geosystems, 27, e2026GC013105. https://doi.org/10.1029/2026GC013105

    Feel free to cite this paper when using PyGMT in your research.

  • PyGMT now has an official logo, which is available via the Figure.pygmtlogo method (#4616)

  • ๐ŸŽ‰ Nineteenth minor release of PyGMT ๐ŸŽ‰

  • Six new high-level plotting methods and two new grid processing functions

  • Eight new gallery examples and tutorials

  • New Frame/Axis classes for setting frame and axes

New Features

  • Add Figure.choropleth for plotting choropleth maps (#2798)
  • Add Figure.directional_rose for plotting a directional rose on map (#4025, #4702)
  • Add Figure.fill_between for filling between two curves (#4679, #4698, #4696, #4692)
  • Add Figure.magnetic_rose for plotting a magnetic rose on map (#4051, #4702)
  • Add Figure.paragraph for typesetting one or multiple paragraphs of text strings (#3709, #4605)
  • Add Figure.scalebar for plotting a scale bar on maps (#4015)
  • Add the Frame/Axis class for setting frame and axes (#4406, #4593, #4589, #4520, #4591)
  • Add pygmt.grdmask for creating mask grid from polygons or point coverage (#4463)
  • Add pygmt.grdpaste for joining two grids along their common edge (#4399)

Enhancements

  • Add a note/warning that PS_CONVERT is not supported (#4342)
  • Add filtering tags for gallery examples of projections (#4643)
  • Figure.colorbar: Add parameters dpi/monochrome (#4501, #4499)
  • Figure.colorbar: Add parameters label/unit/annot/tick/grid and more to set colorbar annotations/labels (#4407)
  • Figure.grdview: Add parameters smooth and surftype/dpi/mesh_fill/nan_transparent/monochrome to control surface types (#4234, #4444)
  • Figure.subplot: Add parameters tag/tag_box/tag_position/tag_orientation/tag_number_style/tag_font for controlling subplot tagging (#4313)
  • Figure.ternary: Support Frame's xaxis/yaxis/zaxis attributes to set axis settings for a/b/c axes (#4517)
  • Figure.ternary: Add the 'no_clip' parameter for plotting symbols outside the ternary diagram (#4707)
  • Figure.text: Allow passing a sequence of offset to the 'offset' parameter (#4652)
  • Implement the frame='none' syntax for no frames (#4404)
  • Support passing np.timedelta64 to parameters that expect a sequence (e.g., 'region') (#4358)
  • BREAKING Raise GMTTypeError exception for unsupported image dtypes (#4673)
  • pygmt.grdfilter: Add parameters filter/width/highpass to set the filter and support Pythonic arguments for distance (#4401, #4405)
  • pygmt.grdgradient: Add parameters normalize/norm_ambient/norm_amp/norm_sigma/norm_offset for normalization (#4365)
  • pygmt.which: Support long-form arguments for the download parameter (#4429)

Deprecations

  • Figure.set_panel: Deprecate parameter 'fixedlabel' to 'tag' (Will be removed in v0.23.0) (#4393)
  • pygmt.grdclip: Remove parameter 'new' (Deprecated since v0.15.0) (#4343)
  • pygmt.grdfill: Remove parameter 'mode'/'no_data' (Deprecated since v0.15.0) (#4345, #4344)
  • utils.sequence_join: Remove parameter 'separator' (Deprecated since v0.17.0) (#4346)

Bug Fixes

  • Figure.set_panel: Fix the bug when panel is not set (#4628)

Documentation

  • Add advanced tutorial for plotting features on a 3-D surface (#4466)
  • Add basic tutorial for plotting single-parameter symbols (#3598)
  • Add gallery example for creating a 3-D bar plot (#4315)
  • Add gallery example for plotting the PyGMT logo (#4715)
  • Add gallery example for plotting directional roses (#4010)
  • Add gallery example for plotting magnetic roses (#4381)
  • Add gallery example showing how to fill the area between two curves (#3168)
  • Add the Spilhaus projection to the supported GMT projections (#4657)
  • Update scalebar gallery example using the high-level Figure.scalebar method (#4382)
  • Add contributing guides for wrapping a GMT module (#1687)

Maintenance

  • Add typos for source code spelling check (#4690)
  • BREAKING: Figure: Raise GMTParameterError for deprecated parameters U/X/Y/timestamp/xshift/yshift. Previously raise GMTInvalidInput (#4400)
  • BREAKING: Raise GMTParameterError exception for as_most_one parameters. Previously raise GMTInvalidInput (#4383)
  • BREAKING: Raise GMTParameterError exception for as_most_one parameters. Previously raise GMTInvalidInput. Part 2 (#4388)
  • BREAKING: Raise GMTParameterError exception for at_least_one parameters. Previously raise GMTInvalidInput (#4380)
  • BREAKING: Raise GMTParameterError exception for conflicts_with parameters. Previously raise GMTInvalidInput (#4387)
  • BREAKING: Raise GMTParameterError exception for missing required parameters. Previously raise GMTInvalidInput (#4374)
  • BREAKING: Raise GMTValueError if input arrays don't have the same size (#4377)
  • Figure.basemap: Raise a warning on deprecated parameters "map_scale", "rose", and "compass" (#4477)
  • Figure: Refactor how plotting methods are attached to the Figure class (#4612)
  • CI: Bump ghostscript to 10.07.0 (#4476)
  • CI: Test NumPy 2.5 in the GMT Tests workflow (#4693)
  • Clarify human-only authorship and exclude bot contributors (#4640)
  • SPEC 0: Bump minimum supported version to NumPy 2.1, pandas 2.3 and xarray 2024.7 (#4650)
  • Update .pre-commit-config.yaml hooks using dependabot (#4435)

Full Changelog: v0.18.0...v0.19.0

Contributors

Read more

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 12 Jan 02:44
b1d4bd7

Release v0.18.0 (2026/01/12)

Digital Object Identifier for PyGMT v0.18.0

Highlights

  • ๐ŸŽ‰ Eighteenth minor release of PyGMT ๐ŸŽ‰
  • Enhanced GMT embellishment (e.g., scale bar, GMT logo, image) placement and styling with a Pythonic Position class and additional controlling parameters
  • Five new or updated gallery examples (#4231, #4229, #4228, #4265, #4214)

New Features

  • Add the Position class for GMT embellishment placement (#4212)

Enhancements

  • AliasSystem: Migrate the 'registration' parameter to the new alias system and support descriptive arguments (#4182)
  • pygmt.grdfilter: Let the parameter 'nans' support descriptive arguments (#4310)
  • Figure.colorbar: Add position/length/width and more parameters to specify colorbar position and properties (#4048)
  • Figure.grdview: Improve parameters plane/facade_fill/facade_pen to set the plane and facade (#4235)
  • Figure.histogram: Split parameter bar_width into bar_width and bar_offset (#4316)
  • Figure.inset: Add parameters position/width/height to specify inset position and dimensions (#4047)
  • Figure.image: Add aliases for -I (invert) and -B (frame) (#4089, #4301)
  • Figure.image: Add parameters position/width/height/dpi/replicate to control image position and properties (#4045)
  • Figure.legend: Add aliases for -S (scale) and -B (frame) (#4254)
  • Figure.legend: Add parameters position/width/height/line_spacing to specify legend position and properties (#4046)
  • Figure.logo: Add parameters position/width/height to specify logo position and dimensions (#4014)
  • Figure.wiggle: Add parameters position/length/label/label_alignment for the scalebar position and properties (#4049)

Deprecations

  • Figure: Remove the deprecated _preprocess method (Deprecated since v0.16.0) (#4146)
  • pygmt.grdfill: Deprecate parameters splinefill/constantfill/neighborfill/gridfill to spline_fill/constant_fill/neighbor_fill/grid_fill (Will be removed in v0.20.0) (#4273)
  • pygmt.grdlandmask: Deprecate parameters bordervalues/maskvalues to broder_values/mask_values (Will be removed in v0.20.0) (#4281)
  • pygmt.grdsample: Deprecate parameter 'translate' to 'toggle' (Will be removed in v0.21.0) (#4187)
  • Figure.grdview: Deprecate parameters contourpen/facadepen/meshpen to contour_pen/facade_pen/mesh_pen (Will be removed in v0.20.0) (#4260)
  • Figure.grdview: Deprecate parameter drapegrid to drape_grid (Will be removed in v0.20.0) (#4276)
  • Figure.histogram: Deprecate parameter barwidth to bar_width (Will be removed in v0.20.0) (#4279)
  • Figure.inset: Deprecate parameter margin to clearance (Will be removed in v0.20.0) (#4296)
  • Figure.meca: Deprecate parameters compressionfill/extensionfill/labelbox to compression_fill/extension_fill/label_box (Will be removed in v0.20.0) (#4269, #4274)
  • pygmt.select: Deprecate parameter gridmask/mask to mask_grid/mask_values (Will be removed in v0.20.0) (#4283, #4288)
  • pygmt.surface: Deprecate parameter maxradius to max_radius (Will be removed in v0.20.0) (#4300)
  • Figure.velo: Deprecate parameter uncertaintyfill to uncertainty_fill (Will be removed in v0.20.0) (#4272)
  • Figure.wiggle: Deprecate parameters fillnegative/fillpositive to negative_fill/positive_fill (Will be removed in v0.20.0) (#4271)
  • pygmt.x2sys_cross: Deprecate parameter trackvalues to track_values (Will be removed in v0.20.0) (#4282)

Bug Fixes

  • load_earth_relief: Clarify that 03s/01s resolutions are available for IGPP source only (#4192)
  • geopandas: Fix UnicodeEncodeError on Windows for geopandas.GeoDataFrame with non-ASCII characters (#4224)
  • Figure.grdview: Fix the default z-plane to the grid z minimum when plane is set to True or only facede_fill/facede_pen is set (#4287)

Documentation

  • Add example for geopandas point geometry: Use cities in Europe from Natural Earth (#4231)
  • Update example for geopandas line geometry: Use Natural Earth dataset, change to Asia (#4229)
  • Update example for geopandas polygon geometry: Use the Natural Earth dataset, change to Africa (#4228)
  • Advanced tutorial "Legends": Add example for adjusting line spacing (#4265)
  • Tutorial "Plotting data points": Add legend for size coding (#4214)

Maintenance

  • Add support for Python 3.14 (#4150)
  • SPEC 0: Bump minimum supported version to Python 3.12, NumPy 2.0, and Xarray 2024.5 (#4248, #4090)
  • DOC: Update naming convention in contributors guide: Separate words in parameter names by underscores (#4284)
  • fmt_docstrings: Use string template syntax for docstring placeholders and support curly braces in docstrings (#4210)
  • Remove dev dependency on "geodatasets" (#4230)
  • CI: Add a new workflow to cache dvc cache (#4184)
  • CI: Migrate the welcome bot to GitHub Actions (#4149)
  • CI: Test NumPy 2.4 in the GMT Tests workflow (#4319)
  • Add an issue template for wrapping GMT modules (#4152)

Full Changelog: v0.17.0...v0.18.0

Contributors

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 22:50
db60200

Release v0.17.0 (2025/10/03)

Digital Object Identifier for PyGMT v0.17.0

Highlights

  • ๐ŸŽ‰ Seventeenth minor release of PyGMT ๐ŸŽ‰
  • Add support for GMT 6.6.0, while dropping support for GMT 6.4.0 (#4017)
  • Implement the new alias system towards a Pythonic interface (#3986, #4000, #3993)
  • GMTDataArrayAccessor: Support applying grid operations on the current xarray.DataArray object (#3854)

New Features

  • Add the Box class for specifying the box of GMT embellishments (#3995)
  • Add the Pattern class for specifying bit and hachure patterns to fill symbols and polygons (#4020)

Enhancements

  • Figure.solar: Support terminator datetime with timezone (#4112)
  • pygmt.show_versions: Report GDAL version by calling the GDAL C function (#4104)
  • pygmt.binstats: Let the parameter 'statistic' support descriptive arguments (#3012)
  • Figure.logo: Let the 'style' parameter support descriptive arguments (#4074)
  • Let the 'verbose' parameter support descriptive arguments (#4039)
  • sequence_join: Correctly join datetime-like values in pandas.DataFrame/xarray.DataArray objects (#4097)

Deprecations

  • Drop support for GMT 6.4.0 (#4127)
  • BREAKING Raise GMTValueError exception for invalid values. Previously raise GMTInvalidInput (#3985, #3998)
  • BREAKING Raise GMTTypeError exception for invalid types. Previously raise GMTInvalidInput (#3999)
  • BREAKING Figure.grdimage: Raise NotImplementedError instead of GMTInvalidInput for -A option (#4062)
  • sequence_join: Deprecate parameter 'separator', use 'sep' instead. [Will be removed in v0.19.0] (#4033)

Bug Fixes

  • pygmt.x2sys_cross: Fix IndexError to allow empty DataFrame outputs (#4060)
  • is_nonstr_iter: 0-D array is now recognized as non-iterable (#4004)
  • Fix the bug when passing a sequence that contains True to a parameter (#3982)

Documentation

  • Figure.colorbar: Add note regarding automatic fontsize scaling (#4126)
  • Add gallery example to show text formatting (#3987)
  • Add gallery example for using EPSG codes (#3973)
  • Add Technical Reference page for justification codes (#4028)
  • Add Technical Reference page for text formatting (#3976)

Maintenance

  • BREAKING Figure.text: Raise GMTTypeError if text is a sequence when position is given (#4065)
  • Switch from pre-commit to prek (#4082)
  • SPEC 0: Bump minimum supported version to pandas 2.2 and Xarray 2023.10 (#4092, #4091)
  • Remove the support of non-aliased aliases in use_alias/fmt_docstrings (#4042)
  • CI: Bump to macOS 26 in the GMT Dev Tests workflow (#4084)
  • CI: Bump to macOS 14 in the GMT Legacy Tests workflow (#3996)
  • CI: Access DagsHub repository via an access token (#4078)
  • CI: Bump to Ghostscript 10.06.0 (#4125)
  • CI: Bump to GMT 6.6.0 in CI (#4018)

Full Changelog: v0.16.0...v0.17.0

Contributors

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 18 Jun 12:31
c156826

Release v0.16.0 (2025/06/18)

Digital Object Identifier for PyGMT v0.16.0

Highlights

  • ๐ŸŽ‰ Sixteenth minor release of PyGMT ๐ŸŽ‰
  • Implement gmt xarray BackendEntrypoint to load raster files via GMT (#3919, #3932)
  • Remove the dependency of netCDF4 (#3643)

Enhancements

  • pygmt.grdclip: Parameters 'between' and 'replace' accept a 2-D sequence (#3883)
  • pygmt.grdlandmask: Improve the checking of parameters 'maskvalues'/'bordervalues' (#3963)
  • Figure.coast/pygmt.select/pygmt.grdlandmask: Use long names ("crude"/"low"/"intermediate"/"high"/"full") for the 'resolution' parameter (#3013)
  • Add a helper function sequence_join to join a sequence by a separator (#3961)
  • Improve decorators @use_alias/@fmt_docstrings to list non-aliased aliases (#3965)
  • Store first tile as source encoding for tiled grids (#3950)

Deprecations

  • Figure: Deprecate the private _preprocess method (will be removed in v0.18.0) (#3948)
  • Deprecate pygmt.io.load_dataarray, use xarray.load_dataarray instead (#3922)
  • Session.virtualfile_in: Deprecate the parameter 'extra_arrays'. Prepare and pass a dictionary of arrays instead (will be removed in v0.20.0) (#3823)
  • Session.virtualfile_in: Deprecate parameter 'required_z'. Use 'mincols' instead (will be removed in v0.20.0) (#3369)
  • Session.virtualfile_in: Deprecate parameter 'required_data' to 'required' (will be removed in v0.20.0) (#3931)
  • Session.virtualfile_from_vectors: Remove the deprecated '*args' parameter [deprecated since v0.14.0] (#3893)
  • SPEC 0: Bump minimum supported versions to NumPy 1.26, xarray>=2023.07 and pandas>=2.1 (#3916, #3918, #3895)
  • Bump minimum supported version to pyarrow>=16, packaging>=24.2, geopandas>=1.0, and contextily>=1.5 (#3917, #3933, #3908, #3912)

Bug Fixes

  • pygmt.select: Parameter 'mask' accepts a sequence of strings (#3956)

Documentation

  • GMTDataArrayAccessor: Improve the documentation to clarify how the accessor works (#3955)

Maintenance

  • Update the AUTHORSHIP and Maintainers' Guides to reflect co-author contributions (#3904)
  • Set registration and gtype properly as enums on gmt accessor init (#3942)
  • Set license and license-files key in project metadata to follow PEP639 (#3699)
  • CI: Test NumPy 2.3 in the GMT Tests workflow (#3968)
  • Bump to ruff>=0.12.0 and fix violations (#3980)

Full Changelog: v0.15.0...v0.16.0

Contributors

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 31 Mar 11:04
020dc12

Release v0.15.0 (2025/03/31)

Digital Object Identifier for PyGMT v0.15.0

Highlights

  • ๐ŸŽ‰ Fifteenth minor release of PyGMT ๐ŸŽ‰
  • One new gallery example and two new tutorials
  • Figure.shift_origin: Support shifting origins temporarily when used as a context manager (#2509)
  • Documentation as HTML ZIP archive and in PDF format for offline reference

Enhancements

  • BREAKING Support typesetting apostrophe (') and backtick (`) (#3105)
  • BREAKING pygmt.grdcut: Refactor to store output in virtualfiles for grids (#3115)
  • GMTDataArrayAccessor: Support passing values using enums GridRegistration and GridType for grid registration and type (#3696)
  • pygmt.grdfill: Add new parameters 'constantfill'/'gridfill'/'neighborfill'/'splinefill' for filling holes (#3855)
  • pygmt.grdfill: Add new parameter 'inquire' to inquire the bounds of holes (#3880)
  • pygmt.grdfill: Add alias 'coltypes' (-f) (#3869)

Deprecations

  • pygmt.grdfill: Deprecate parameter 'no_data' to 'hole' (remove in v0.19.0) (#3852)
  • pygmt.grdfill: Deprecate parameter 'mode', use parameters 'constantfill'/'gridfill'/'neighborfill'/'splinefill' instead (remove in v0.19.0) (#3855)
  • pygmt.grdclip: Deprecate parameter 'new' to 'replace' (remove in v0.19.0) (#3884)
  • clib.Session: Remove deprecated open_virtual_file method, use open_virtualfile instead (Deprecated since v0.11.0) (#3738)
  • clib.Session: Remove deprecated virtualfile_from_data method, use virtualfile_in instead (Deprecated since v0.13.0) (#3739)

Documentation

  • Add an advanced tutorial for plotting focal mechanisms (beachballs) (#2550)
  • Add an advanced tutorial for creating legends (#3594)
  • Add a gallery example for Figure.hlines and Figure.vlines (#3755)

Maintenance

  • Use the 'release-branch-semver' version scheme for setuptools_scm (#3828)
  • Rename _GMT_DATASET.to_dataframe to .to_pandas and _GMT_GRID.to_dataarray/_GMT_IMAGE.to_dataarray to .to_xarray (#3798)
  • Bump to ruff 0.9.0, apply ruff 2025 style, and ignore A005 (stdlib-module-shadowing) violations (#3763)
  • Use well-known labels in project URLs following PEP753 (#3743)
  • clib.conversion: Remove the unused array_to_datetime function (#3507)
  • CI: Test on Linux arm64 runners (#3778)
  • CI: Build PDF documentation using tectonic (#3765)

Full Changelog: v0.14.0...v0.15.0

Contributors

v0.14.2

Choose a tag to compare

@seisman seisman released this 15 Feb 02:56
8111f88

Release v0.14.2 (2025/02/15)

Digital Object Identifier for PyGMT v0.14.2

Bug Fixes

  • Patch release fixing a critical bug introduced in PyGMT v0.14.1
  • Fix the bug for passing text strings with numeric values (#3804)

Full Changelog: v0.14.1...v0.14.2

Contributors

v0.14.1

Choose a tag to compare

@seisman seisman released this 01 Feb 11:49
31637dd

Release v0.14.1 (2025/02/01)

Digital Object Identifier for PyGMT v0.14.1

Highlights

  • Patch release fixing critical bugs in PyGMT v0.14.0
  • Fix the bug of converting Python sequence of datetime-like objects (#3760)

Maintenance

  • CI: Separate jobs for publishing to TestPyPI and PyPI (#3742)
  • clib.conversion._to_numpy: Add tests for Python sequence of datetime-like objects (#3758)
  • Fix an image in README.md (broken on PyPI) and rewrap to 88 characters (#3740)
  • Fix the dataset link in the RGB image gallery example (#3781)
  • Update License year to 2025 (#3737)

Full Changelog: v0.14.0...v0.14.1

Contributors

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 31 Dec 16:47
2a84b5e

Release v0.14.0 (2024/12/31)

Digital Object Identifier for PyGMT v0.14.0

Highlights

  • ๐ŸŽ‰ Fourteenth minor release of PyGMT ๐ŸŽ‰
  • Bump minimum supported version to GMT>=6.4.0 (#3450)
  • Two new plotting methods and six new functions to access more GMT remote datasets
  • PyArrow as an optional dependency and improved support of PyArrow data types (#3592)

New Features

  • Add Figure.hlines for plotting horizontal lines (#923)
  • Add Figure.vlines for plotting vertical lines (#3726)
  • Add load_black_marble to load "Black Marble" dataset (#3469)
  • Add load_blue_marble to load "Blue Marble" dataset (#2235)
  • Add load_earth_deflection to load "IGPP Earth east-west and north-south deflection" datasets (#3728)
  • Add load_earth_dist to load "GSHHG Earth distance to shoreline" dataset (#3706)
  • Add load_earth_mean_dynamic_topography to load "CNES Earth Mean Dynamic Topography" dataset (#3718)
  • Add load_earth_mean_sea_surface to load "CNES Earth Mean Sea Surface" dataset (#3717)
  • load_earth_free_air_anomaly: Add "uncertainty" parameter to load the "IGPP Earth free-air anomaly uncertainty" dataset (#3727)

Enhancements

  • Figure.plot: Add the "symbol" parameter to support plotting data points with varying symbols (#1117)
  • Figure.plot3d: Add the "symbol" parameter to support plotting data points with varying symbols (#3559)
  • Figure.legend: Support passing a StringIO object as the legend specification (#3438)
  • load_tile_map: Add parameter "crs" to set the CRS of the returned dataarray (#3554)
  • PyArrow: Support pyarrow arrays with string/large_string/string_view types (#3619)
  • Support 1-D/2-D numpy arrays with longlong and ulonglong dtype (#3566)
  • GMT_IMAGE: Implement the to_dataarray method for 3-band images (#3128)
  • Ensure non-ASCII characters are typeset correctly even if PS_CHAR_ENCODING is not "ISOLatin1+" (#3611)
  • Add enums GridRegistration and GridType for grid registration and type (#3693)

Deprecations

  • SPEC 0: Bump minimum supported versions to Python 3.11, NumPy 1.25, pandas>=2.0 and xarray>=2023.04 (#3460, #3606, #3697)
  • clib.Session.virtualfile_from_vectors: Now takes a sequence of vectors as its single argument (Passing multiple arguments will be unsupported in v0.16.0) (#3522)
  • Remove the deprecated build_arg_string function (deprecated since v0.12.0) (#3427)
  • Figure.grdcontour: Remove the deprecated syntax for the 'annotation' parameter (deprecated since v0.12.0) (#3428)

Bug Fixes

  • launch_external_viewer: Use full path when opening the file in a web browser (#3647)
  • PyArrow: Map date32[day]/date64[ms] dtypes in pandas objects to np.datetime64 with correct date/time units (#3617)
  • clib.session: Add the GMT_SESSION_NOGDALCLOSE flag to keep GDAL open (#3672)
  • Set the "Conventions" attribute to "CF-1.7" for netCDF grids only (#3463)
  • Fix the conversion error for pandas.Series with missing values in pandas<=2.1 (#3505, #3596)
  • GeoPandas: Explicitly convert columns with overflow integers to avoid OverflowError with fiona 1.10 (#3455)
  • Figure.plot/Figure.plot3d: Improve the check of the "style" parameter for "v" or "V" (#3603)
  • Correctly reserve the grid data dtype by converting ctypes array to numpy array with np.ctypeslib.as_array (#3446)
  • Breaking: Figure.text: Fix typesetting of integers when mixed with floating-point values (#3493)

Documentation

  • Add basic tutorial "Plotting polygons" (#3593)
  • Update the gallery example for plotting lines with LineString/MultiLineString geometry (#3711)
  • Add the PyGMT ecosystem page (#3475)
  • Document the support policy for optional packages (#3616)
  • Document the environment variables that can affect the behavior of PyGMT (#3432)
  • Document the built-in patterns in the Technical Reference section (#3466)
  • Document Continuous Benchmarking in Maintainers Guides (#3631)
  • Add instructions for installing optional dependencies (#3506)
  • Update "PyData Ecosystem" to "Scientific Python Ecosystem" (#3447)
  • Figure.savefig: Clarify that the "transparent" parameter also works for the PNG file associated with the KML format (#3579)
  • Add the PyGMT talk at AGU24 to the "Overview" section (#3685)
  • Add the GMT/PyGMT pre-conference workshop at AGU24 to the "External resources" section (#3689)
  • Add TODO comments in the maintainers guides and update the release checklist (#3724)

Maintenance

  • Breaking: data_kind: data is None and required now returns the "empty" kind (#3482)
  • Breaking: data_kind: Now "matrix" represents a 2-D numpy array and unrecognized data types fall back to "vectors" (#3351)
  • Add Support for Python 3.13 (#3490)
  • Add the Session.virtualfile_from_stringio method to allow StringIO input for certain functions/methods (#3326)
  • Add "geodatasets" as a dependency for docs and update the choropleth example (#3719)
  • PyArrow: Check compatibility of pyarrow.array with string type (#2933)
  • Rename sphinx-gallery's README.txt to GALLERY_HEADER.rst and require Sphinx-Gallery>=0.17.0 (#3348)
  • clib.conversion: Remove the as_c_contiguous function and use np.ascontiguousarray instead (#3492)
  • Use TODO comments to track deprecations and workarounds (#3722)
  • Move Figure.psconvert into a separate file (#3553)
  • Improve the data type checking for 2-D arrays passed to the GMT C API (#3563)
  • Enable ruff's TD (flake8-todos), COM (flake8-commas), TRY (tryceratops), and EM (flake8-errmsg) rules (#3723, #3531, #3665, #3661)
  • CI: Install pyarrow-core instead of pyarrow from conda-forge (#3698)
  • CI: Ensure no hyphens in Python file and directory names in the "Style Checks" workflow (#3703)
  • Bump to ruff>=0.8.0 and rename rule TCH to TC (#3662)
  • Bump to Ghostscript 10.04.0 (#3443)
  • Add enums GridFormat for GMT grid format ID (#3449)

Full Changelog: <https://github.com/GenericMappingTools/...

Read more

v0.13.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 11:54
1ff03a3

Release v0.13.0 (2024/09/05)

Digital Object Identifier for PyGMT v0.13.0

Highlights

  • ๐ŸŽ‰ Thirteenth minor release of PyGMT ๐ŸŽ‰
  • Add new documentation section "Technical Reference" and document the supported encodings and fonts
  • Tutorial for "Draping a dataset on top of a topographic surface" (#3316)
  • Tutorial for "Typesetting non-ASCII characters" (#3389)

New Features

  • Wrap the GMT API function GMT_Read_Data to read data into GMT data containers (#3324)
  • Wrap GMT's standard data type GMT_IMAGE for images (#3338)

Enhancements

  • Breaking: pygmt.x2sys_cross: Refactor to use virtualfiles for output tables (#3182)
  • pygmt.show_versions: Warn about incompatible Ghostscript versions (#3244)
  • pygmt.show_versions: Show GDAL version (#3364, #3376)
  • pygmt.datasets.load_*: Add autocompletion support for the 'resolution' parameter (#3260)
  • clib.Session: Refactor the __getitem__ special method to avoid calling API function GMT_Get_Enum repeatedly (#3261)
  • clib: Refactor to avoid checking GMT version repeatedly and only check once when loading the GMT library (#3254)
  • Support non-ASCII characters in ISO-8859-x charsets (#3310)
  • Refactor to improve the user experience with non-ASCII characters (#3206)

Deprecations

  • SPEC 0: Bump minimum supported version to xarray 2022.09 (#3372)
  • SPEC 0: Bump minimum supported version to NumPy 1.24 (#3286)
  • clib: Deprecate API function 'Session.virtualfile_from_data', use 'Session.virtualfile_in' instead (will be removed in v0.15.0) (#3225)
  • Remove the unused pygmt.print_clib_info function (#3257)
  • Figure.timestamp: Remove deprecated parameter 'justification', use 'justify' instead (deprecated since v0.11.0) (#3222)

Bug Fixes

  • pygmt.set_display: Fix the bug that method=None doesn't reset to the default display method (#3396)
  • load_tile_map: Register the rio accessor by importing rioxarray, so the returned raster has CRS (#3323)
  • load_tile_map: Fix the raster band indexing, should start from 1 (#3322)
  • load_tile_map: Replace deprecated rio.set_crs with rio.write_crs (#3321)
  • PYGMT_USE_EXTERNAL_DISPLAY should NOT disable image display in Jupyter notebook environment (#3418)

Documentation

  • External Resources: Add tutorial in Portuguese and using PyGMT in Google Colab (#3360)
  • Remove the non-official GMT wrappers from README (#3413)
  • Give recommendations about GMT-Ghostscript incompatibility and the testing example (#3249)
  • Document the supported 35 standard Postscript fonts in the Technical Reference section (#3378)
  • Add an offboarding access checklist for maintainers (#3411)
  • Update the onboarding access checklist in Maintainers Guides (#3404)
  • Add sphinx extension myst-nb to enable writing executable Markdown notebooks (#3379)

Maintenance

  • pygmt.grd2cpt & pygmt.makecpt: Simplify the logic for dealing with CPT output (#3334)
  • geopandas: Use io.StringIO to read geojson data and handle compatibility with geopandas v0.x and v1.x (#3247)
  • Simplify the "Minimum Supported Versions" page using MyST customized URL schemes (#3383)
  • build_arg_list: Raise an exception if an invalid output file name is given (#3336)
  • sphinx-gallery: Temporarily pin to < 0.17.0 (#3350)
  • Run pytest with --color=yes to force GitHub Actions logs to have color (#3330)
  • Patch the callback print function to suppress the UnicodeDecodeError (#3367)
  • Move Will from Active Maintainers to Distinguished Contributors (#3388)
  • Enable ruff's unspecified-encoding (PLW1514) rule and fix violations (#3319)
  • Enable ruff's literal-membership (PLR6201) rule and fix violations (#3317)
  • Determine the minimum required versions of dependencies from package metadata for docs (#3380)
  • CI: Use OIDC token for codecov uploading (#3163)
  • CI: Test NumPy 2.1 in the GMT Tests workflow (#3401)
  • CI: Set GMT_ENABLE_OPENMP to TRUE to enable OpenMP support on macOS (#3266)
  • CI: Fix the name of the 'build' package to 'python-build' on conda-forge (#3408)
  • CI: Bump to ubuntu-24.04 and mambaforge-23.11 in ReadTheDocs (#3296)
  • CI: Build GMT dev source code with OpenMP enabled on Linux and GThreads enabled on Linux/macOS (#3011)
  • CI: Add pytest plugins pytest-xdist and pytest-rerunfailures (#3193, #3267)
  • Add pre-commit config with pre-commit-hooks and enable pre-commit.ci to update hooks quarterly (#3283, #3414)
  • Add a test to make sure PyGMT works with paths that contain non-ASCII characters (#3280)

Full Changelog: v0.12.0...v0.13.0

Contributors

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 01 May 11:14
3986056

Release v0.12.0 (2024/05/01)

Digital Object Identifier for PyGMT v0.12.0

Highlights

  • ๐ŸŽ‰ Twelfth minor release of PyGMT ๐ŸŽ‰
  • ๐Ÿš€ Almost all module wrappers (with a few exceptions) now use in-memory GMT virtual files instead of intermediate temporary files to improve performance (#2730)
  • Almost all module wrappers (with a few exceptions) now have consistent behavior for table-like output (#1318)
  • Adopt SPEC 0 policy for minimum supported versions of GMT, Python, and other core dependencies

Enhancements

  • pygmt.project: Add 'output_type' parameter for output in pandas/numpy/file formats (#3110)
  • pygmt.grdtrack: Add 'output_type' parameter for output in pandas/numpy/file formats (#3106)
  • pygmt.blockm*: Add 'output_type' parameter for output in pandas/numpy/file formats (#3103)
  • Figure.grdcontour: Adjust processing arguments passed to "annotation" and "interval" parameters (#3116)
  • Figure.contour: Adjust processing arguments passed to "annotation" and "levels" parameters (#2706)
  • clib: Wrap the GMT API function GMT_Read_VirtualFile (#2993)
  • clib: Add virtualfile_to_dataset method for converting virtualfile to a dataset (#3083, #3140, #3157, #3117)
  • clib: Add the virtualfile_out method for creating output virtualfile (#3057)
  • Wrap GMT_Inquire_VirtualFile to get the family of virtualfiles (#3152)
  • Wrap GMT's standard data type GMT_GRID for grids (#2398)
  • Wrap GMT's standard data type GMT_DATASET for table inputs (#2729, #3131, #3174)
  • Wrap GMT's data structure GMT_GRID_HEADER for grid/image/cube headers (#3127, #3134)
  • Session.call_module: Support passing a list of argument strings (#3139)
  • Refactor the _load_remote_dataset function to load tiled and non-tiled grids in a consistent way (#3120)
  • Refactor all wrappers to pass an argument list to Session.call_module (#3132)
  • Add function build_arg_list for building arguments list from keyword dictionaries (#3149)
  • Support left/right single quotation marks in text and arguments (#3192)
  • non_ascii_to_octal: Return the input string if it only contains printable ASCII characters (#3199)

Deprecations

  • Figure.plot/plot3d/rose: Remove deprecated parameter "color", use "fill" instead (deprecated since v0.8.0) (#3032)
  • Figure.velo: Remove deprecated parameters "color"/"uncertaintycolor", use "fill"/"uncertaintyfill" instead (deprecated since v0.8.0) (#3034)
  • Figure.wiggle: Remove deprecated parameter "color", use "fillpositive"/"fillnegative" instead (deprecated since v0.8.0) (#3035)
  • Figure.grdimage: Remove deprecated parameter "bit_color", use "bitcolor" instead (deprecated since v0.8.0) (#3036)
  • Figure: Remove deprecated "xshift" ("X") and "yshift" ("Y") parameters, use "Figure.shift_origin" instead (deprecated since v0.8.0) (#3044)
  • Figure: Remove deprecated "timestamp" ("U") parameter, use "Figure.timestamp" instead (deprecated since v0.9.0) (#3045)
  • clib: Rename the "virtualfile_from_data" method to "virtualfile_in" (#3068)
  • Deprecate the "build_arg_string" function, use build_arg_list instead (deprecated since v0.12.0, will be removed in v0.14.0) (#3184)
  • Deprecate the "sequence_plus" converter, only used for the "annotation" parameter of Figure.grdcontour (deprecated since v0.12.0, will be removed in v0.14.0) (#3207)
  • Figure.grdcontour: Deprecate parameter "interval" to "levels" (FutureWarning since v0.12.0, will be removed in v0.16.0) (#3209)

Documentation

  • External Resources: Add repository "gmt-pygmt-plotting" (#3213)
  • Gallery example "Custom symbols": Mention own custom symbols (#3186)
  • Intro "04 Table inputs": Document that a list of file names, pathlib.Path objects, URLs, or remote files is supported (3214)
  • Tutorial "Plotting text": Rewrite to improve structure, explain more parameters, show list input (#2760)

Maintenance

  • pygmt.filter1d: Improve performance by storing output in virtual files (#3085)
  • pygmt.grdvolume: Refactor to store output in virtual files instead of temporary files (#3102)
  • pygmt.grdhisteq.compute_bins: Refactor to store output in virtual files instead of temporary files (#3109)
  • pygmt.grd2xyz: Improve performance by storing output in virtual files (#3097)
  • pygmt.select: Improve performance by storing output in virtual files (#3108)
  • pygmt.triangulate.delaunay_triples: Improve performance by storing output in virtual files (#3107)
  • pygmt.which: Refactor to get rid of temporary files (#3148)
  • Use consistent names (vintbl and vingrd) for input virtual files (#3082)
  • Add sequence_to_ctypes_array to convert a sequence to a ctypes array (#3136)
  • Add strings_to_ctypes_array to convert a sequence of strings into a ctypes array (#3137)
  • Figure.psconvert: Ignore the unrecognized "metadata" parameter added by pytest-mpl v0.17.0 (#3054)
  • Remote Datasets: Adjust attributes - remove "title", use default of "name" and "long_name", introduce "description" (#3048)
  • Adopt SPEC 0 policy and drop NEP 29 policy (#3037)
  • SPEC 0: Set minimum supported versions to Python>=3.10, pandas>=1.5 and xarray>=2022.06 (#3043, #3039, #3151)
  • Document the support policy for minimum required GMT versions (#3070)
  • Bump to ghostscript 10.03.0 (#3112)
  • Bump to ruff 0.3.0 (#3081)
  • Enable ruff's PTH (flake8-use-pathlib) rules and fix violations (#3129)
  • Change the dev dependency "matplotlib" to "matplotlib-base" to reduce environment size (#3158)
  • Migrate from os.path to pathlib (#3119)
  • CI: Use "gh release" to upload assets to release (#3187)
  • CI: Consistently use github.token instead of secrets.GITHUB_TOKEN (#3189)
  • CI: Configure workflows to run on "workflow_dispatch" event (#3133)
  • Switch to official GitHub action for managing app tokens (#3165)

Full Changelog: v0.11.0...v0.12.0

Contributors

Read more