Skip to content

v0.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Sep 01:18
· 499 commits to refs/heads/main since this release
e59b954

Release v0.10.0 (2023/09/02)

Digital Object Identifier for PyGMT v0.10.0

Highlights

  • πŸŽ‰ Tenth minor release of PyGMT πŸŽ‰
  • Support non-ASCII characters in Figure.text (#2638) and other method arguments (#2584)
  • Three new tutorials and seven new gallery examples

Enhancements

  • Figure.colorbar: Add alias for "Q" (#2608)
  • Figure.grdimage: Allow passing RGB xarray.DataArray images (#2590)
  • Figure.image: Add alias for "G" (#2615)
  • Figure.meca: Add aliases for "L", "T", and "Fr" (#2546)
  • clib.Session: Wrap the GMT_Get_Common API function (#2500)
  • pygmt.grdfill: Add alias for "N" (#2618)
  • pygmt.select: Add aliases for "C", "F", and "L" (#2466)
  • pygmt.show_versions: Show versions of IPython and rioxarray (#2492)
  • Better handling of optional virtual files (e.g., shading in Figure.grdimage) (#2493)

Deprecations

  • Remove the unused pygmt.test() function (#2652)
  • Figure.image: Deprecate parameter "bit_color" to "bitcolor" (remove in v0.12.0) (#2635)
  • Figure.text: Remove the deprecated "incols" parameter (deprecated since v0.8.0) (#2473)
  • NEP29: Set minimum required version to Python 3.9+ (#2487)
  • NEP29: Set minimum required version to NumPy 1.22+ (#2586)

Bug Fixes

  • load_earth_mask: Keep data's encoding to correctly infer data's registration and gtype information (#2632)
  • Geopandas integration: Mapping int/int64 to int32 for OGR_GMT format (#2592)
  • Figure.meca: Let the "scale" parameter accept int/float/str values (#2566)
  • Figure.meca: Fix beachball offsetting for ndarray input (requires GMT>6.4.0) (#2576)

Documentation

  • Document the default CPT for GMT remote datasets (#2573)
  • Add tutorial to explain naming of PyGMT figure elements (#2383)
  • Add tutorial to show interactive data visualization via panel (#2498)
  • Add tutorial for cartesian histograms (#2445)
  • Add gallery example to show usage of dcw parameter in Figure.coast (#2428)
  • Add gallery example to show usage of tile maps (#2585)
  • Add gallery example showing how to build an envelope around a curve (#2587)
  • Add gallery example for plotting an RGB image from an xarray.DataArray (#2641)
  • Add gallery example "Quoted lines" (style="q") (#2563)
  • Add gallery example "Decorated lines" (style="~") (#2564)
  • Add gallery example "Cross-section along a transect" (#2515)

Maintenance

  • Use substitutions to show the minimum required Python and GMT versions dynamically in installation guides (#2488)
  • Use np.asarray to convert a 1-D array to datetime type in array_to_datetime (#2481)
  • Use consistent docstrings for test files (#2578)
  • Use concurrency to cancel previous runs (#2589)
  • Set date_format to ISO8601 to silence pandas 2.0 UserWarning on read_csv (#2569)
  • Remove dummy_context and use contextlib.nullcontext instead (#2491)
  • NEP29: Test PyGMT on NumPy 1.25 (#2581)
  • Fix tests for Aug 2023 updated remote datasets (#2636)
  • Figure.meca: Refactor the two tests for offsetting beachballs (#2572)
  • Figure.meca: Refactor tests for plotting multiple focal mechanisms (#2565)
  • Figure.meca: Refactor tests for plotting a single focal mechanism (#2533)
  • Figure.meca: Add a test for passing event names via pandas.DataFrame (#2582)
  • Exclude bots from contributors in release drafter (#2484)
  • Exclude DVC files from source/binary distributions (#2634)
  • CI: Use mamba-org/provision-with-micromamba to setup micromamba (#2435)
  • CI: Migrate provision-with-micromamba to setup-micromamba (#2536)
  • CI: Run dev tests on Scientific Python nightly wheels (#2612)
  • CI: Remove the deprecated cml-publish command from the dvc-diff workflow (#2559)
  • CI: Fix and simplify the dvc-diff workflow (#2549)
  • CI: Add the "Doctests" workflow to run doctests weekly (#2456)
  • CI: Add detailed descriptions in the workflow files and update maintainer guides (#2496)
  • Add private function _validate_data_input to validate input data (#2595)

Contributors