Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Jun 23:46
b2808cf

Release v0.4.0 (2021/06/20)

Digital Object Identifier for PyGMT v0.4.0

Highlights

  • πŸŽ‰ Fourth minor release of PyGMT πŸŽ‰
  • Add tutorials for datetime data (#1193) and plotting vectors (#1070)
  • Support tab auto-completion in Jupyter (#1282)
  • Minimum required GMT version is now 6.2.0 or newer (#1321)

New Features

  • Wrap blockmean (#1092)
  • Wrap grdclip (#1261)
  • Wrap grdfill (#1276)
  • Wrap grdgradient (#1269)
  • Wrap grdlandmask (#1273)
  • Wrap histogram (#1072)
  • Wrap rose (#794)
  • Wrap solar (#804)
  • Wrap velo (#525)
  • Wrap wiggle (#1145)
  • Add new function to load fractures sample data (#1101)
  • Allow load_earth_relief() to load the original land-only 01s or 03s SRTM tiles (#976)
  • Handle geopandas and shapely geometries via geo_interface link (#1000)
  • Support passing string type numbers, geographic coordinates and datetimes (#975)

Enhancements

  • Allow passing an array as intensity for plot3d (#1109)
  • Allow passing an array as intensity for plot (#1065)
  • Allow passing xr.DataArray as shading to grdimage (#750)
  • Allow x/y/z input for blockmedian and blockmean (#1319)
  • Allow pygmt.which to accept a list of filenames as input (#1312)
  • Refactor blockm* to use virtualfile_from_data and improve i/o (#1280)
  • Refactor grdtrack to use virtualfile_from_data and improve i/o to pandas.DataFrame (#1189)
  • Add parameters to histogram (#1249)
  • Add alias 'aspatial' to methods blockmedian, info, plot, plot3d, surface (#1090)
  • Add alias 'registration' to methods blockmean, info, grdfilter, surface (#1089)
  • Add incols to COMMON_OPTIONS, blockmean, and blockmedian (#1300)
  • Improve Figure.show for displaying previews in Jupyter notebooks and external viewers (#529)
  • Let Figure.savefig recommend .eps or .pdf when .ps extension is used (#1307)

Deprecations

  • Figure.contour: Deprecate parameter "columns" to "incols" (remove in v0.6.0) (#1303)
  • Figure.plot: Deprecate parameter "sizes" to "size" (remove in v0.6.0) (#1254)
  • Figure.plot: Deprecate parameter "columns" to "incols" (remove in v0.6.0) (#1298)
  • Figure.plot3d: Deprecate parameter "sizes" to "size" (remove in v0.6.0) (#1258)
  • Figure.plot3d: Deprecate parameter "columns" to "incols" (remove in v0.6.0) (#1040)
  • Figure.rose: Deprecate parameter "columns" to "incols" (remove in v0.6.0) (#1306)
  • NEP29: Set minimum required versions to NumPy 1.17+ and Python 3.7+ (#1074)
  • Raise a warning for the use of short-form parameters when long-forms are available (#1316)

Bug Fixes

  • Allow pandas.Series inputs to fig.histogram and pygmt.info (#1329)
  • Explicitly use netcdf4 engine in xarray.open_dataarray to read grd files (#1264)
  • Let Figure.savefig support filenames with spaces (#1116)
  • Let Figure.show(method='external') work well in Python scripts (#1062)

Documentation

  • Add histogram gallery example (#1272)
  • Add a gallery example showing individual basic geometric symbols (#1211)
  • Specify rectangle's width and height via style parameter in multi-parameter symbols example (#1325)
  • Update the inset gallery example (#1287)
  • Add categorical colorbars for plot, plot3d and line colors gallery examples (#1267)
  • Apply NIST SI unit convention to some gallery examples (#1194)
  • Use colorblind-friendly colors in the scatter plots gallery example (#1013)
  • Added documentation for three oblique mercator projections (#1251)
  • Add a list of external PyGMT resources (#1210)
  • Complete documentation for grdtrack (#1190)
  • Add projection and region to grdview docstring (#1295)
  • Add common alias spacing (-I) for specifying grid increments (#1288)
  • Standardize docstrings for table-like inputs (#1186)
  • Clarify that the "transparency" parameter in plot/plot3d/text can be 1d array (#1265)
  • Clarify that the "color" parameter in plot/plot3d can be 1d array (#1260)
  • Clarify interplay of spacing and per_column in info (#1127)
  • Remove the "full test" section from installation guide (#1206)
  • Clarify position of deprecate_parameter decorator to be above use_alias (#1302)
  • Add guidelines for managing issues to maintenance.md (#1301)
  • Add alias name convention to CONTRIBUTING.md (#1256)
  • Move contributing guide details to website and rename two sections (#1335)
  • Update the check_figures_equal testing section in CONTRIBUTING.md (#1108)
  • Revise Pull Request review process in CONTRIBUTING.md (#1119)

Maintenance

  • Add a workflow to upload baseline images as a release asset (#1317)
  • Add regression test for grdimage plotting an xarray.DataArray grid subset (#1314)
  • Add download_test_data to download data files used in tests (#1310)
  • Remove xfails and workarounds for datetime inputs into pygmt.info (#1236)
  • Improve the DVC image diff workflow to support side-by-side comparison of modified images (#1219)
  • Document the deprecation policy and add the deprecate_parameter decorator to deprecate parameters (#1160)
  • Convert booleans arguments in build_arg_string, not in kwargs_to_strings (#1125)
  • Create Github Action workflow for reporting DVC image diffs (#1104)
  • Update "GMT Dev Tests" workflow to test macOS-11.0 and pre-release Python packages (#1105)
  • Initialize data version control for managing test images (#1036)
  • Separate workflows for running tests and building documentation (#1033)

Contributors