GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Figure: Remove deprecated "xshift" ("X") and "yshift" ("Y") parameters, use "Figure.shift_origin" instead (deprecated since v0.8.0) by yvonnefroehlich · Pull Request #3044 · GenericMappingTools/pygmt

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Feb 6, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Description of proposed changes

This PR removes the deprecated xshift (X) and yshift (Y) parameters from all plotting methods (deprecated since v0.8.0). The standalone method Figure.shift_origin should be used instead.

Fixes partly #3033
Related to #2071

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.
  • Use underscores (not hyphens) in names of Python files and directories.

Slash Commands

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

  • /format: automatically format and lint the code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
yvonnefroehlich added 2 commits February 6, 2024 11:28
@yvonnefroehlich
Remove X, Y deprecation from decorators
e166936
@yvonnefroehlich
Remove X, Y deprecation test
7571139
@yvonnefroehlich yvonnefroehlich added the deprecation Deprecating a feature label Feb 6, 2024
@yvonnefroehlich yvonnefroehlich mentioned this pull request Feb 6, 2024
Remove the deprecated parameter and alias names in v0.12.0 #3033
Closed
6 tasks done
@yvonnefroehlich yvonnefroehlich changed the title All plotting methods: Remove deprecated 'xshift' ('X') and 'yshift' ('Y') parameters, use 'Figure.shift_origin' instead (deprecated since v0.8.0) All plotting methods: Remove deprecated "xshift" ("X") and "yshift" ("Y") parameters, use "Figure.shift_origin" instead (deprecated since v0.8.0) Feb 6, 2024
yvonnefroehlich and others added 3 commits February 17, 2024 15:48
@yvonnefroehlich
Merge branch 'main' into rem-depr-xyshift
856986a
@yvonnefroehlich
Keep warning for not supported anymore
9a5a137
@yvonnefroehlich
Fix order
8e7ceda
@yvonnefroehlich yvonnefroehlich mentioned this pull request Feb 18, 2024
Figure: Remove deprecated "timestamp" ("U") parameter, use "Figure.timestamp" instead (deprecated since v0.9.0) #3045
Merged
7 tasks
@yvonnefroehlich yvonnefroehlich self-assigned this Feb 18, 2024
yvonnefroehlich added 3 commits February 22, 2024 05:46
@yvonnefroehlich
Merge branch 'main' into rem-depr-xyshift
aa05a9d
@yvonnefroehlich
Merge branch 'main' into rem-depr-xyshift
98c9426
@yvonnefroehlich
Merge branch 'main' into rem-depr-xyshift
e5729b0
seisman
seisman reviewed Feb 26, 2024
View reviewed changes
Comment thread pygmt/tests/test_figure.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

seisman added 3 commits February 27, 2024 21:02
@seisman
Merge branch 'main' into rem-depr-xyshift
046d62f
@seisman
Add a test
143d11d
@seisman
Improve comments
2eb369f
@seisman seisman added this to the 0.12.0 milestone Feb 27, 2024
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Feb 27, 2024
seisman
seisman approved these changes Feb 27, 2024
View reviewed changes
@seisman seisman changed the title All plotting methods: Remove deprecated "xshift" ("X") and "yshift" ("Y") parameters, use "Figure.shift_origin" instead (deprecated since v0.8.0) Figure: Remove deprecated "xshift" ("X") and "yshift" ("Y") parameters, use "Figure.shift_origin" instead (deprecated since v0.8.0) Feb 28, 2024
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Feb 28, 2024
@seisman
seisman merged commit 44f4ffd into main Feb 28, 2024
@seisman
seisman deleted the rem-depr-xyshift branch February 28, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seisman seisman seisman approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@yvonnefroehlich yvonnefroehlich

Labels

deprecation Deprecating a feature

Projects

None yet

Milestone

0.12.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@yvonnefroehlich @seisman
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.