Skip to content

Figure.contour/plot/plot3d/rose: Remove parameter "columns", use "incols" instead - #1806

Merged
seisman merged 5 commits into
mainfrom
remove/columns_to_incols
Mar 13, 2022
Merged

seisman merged 5 commits into
mainfrom
remove/columns_to_incols

Conversation

@weiji14

@weiji14 weiji14 commented Mar 12, 2022 •

Copy link
Copy Markdown
Member

Description of proposed changes

Remove the parameter "columns" in favour of "incols" from Figure.contour, Figure.plot, Figure.plot3d and Figure.rose. Deprecation warning was added in v0.4.0 (xref #1303, #1298, #1040, #1306), and is to be fully removed in v0.6.0.

Note that there was a regression test for fig.contour(..., incols=[1, 0, 2]) that I've kept (xref #1313).

Part of #1801.

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@weiji14 weiji14 added the deprecation Deprecating a feature label Mar 12, 2022
@weiji14 weiji14 added this to the 0.6.0 milestone Mar 12, 2022
@weiji14 weiji14 self-assigned this Mar 12, 2022
@weiji14 weiji14 changed the title Figure.contour/plot/plot3d: Remove parameter "columns", use "incols" instead Figure.contour/plot/plot3d/rose: Remove parameter "columns", use "incols" instead Mar 12, 2022
@weiji14 weiji14 mentioned this pull request Mar 12, 2022
28 tasks done
@maxrjones maxrjones added the final review call This PR requires final review and approval from a second reviewer label Mar 12, 2022
@seisman
seisman marked this pull request as ready for review March 13, 2022 05:09
@seisman
seisman merged commit 0cb0f77 into main Mar 13, 2022
@seisman
seisman deleted the remove/columns_to_incols branch March 13, 2022 05:10
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Mar 13, 2022
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…ols" instead (GenericMappingTools#1806)

* Figure.contour: Remove parameter "columns", use "incols" instead
* Figure.plot: Remove parameter "columns", use "incols" instead
* Figure.plot3d: Remove parameter "columns", use "incols" instead
* Remove unused deprecate_parameter function
* Figure.rose: Remove parameter "columns", use "incols" instead

This branch was previously deployed

1 inactive deployment
Preview — 5fbafe26 Deployed Mar 12, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecating a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants