Skip to content

Let Figure.savefig recommend .eps or .pdf when .ps extension is used - #1307

Merged
seisman merged 4 commits into
masterfrom
ps-extension
May 28, 2021
Merged

seisman merged 4 commits into
masterfrom
ps-extension

Conversation

@seisman

@seisman seisman commented May 27, 2021

Copy link
Copy Markdown
Member

Description of proposed changes

See #300 for the discussions.

'.ps' extension is not supported. When users request a '.ps' file, the old
Unknown extension '.ps' error message is not clear for GMT users.

This PR changes the error message to:

Extension '.ps' is not supported. Please use '.eps' or '.pdf' instead.

Fixes #300.

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 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

@seisman seisman added this to the 0.4.0 milestone May 27, 2021
@seisman seisman added the enhancement Improving an existing feature label May 27, 2021
Comment thread pygmt/figure.py Resolved
Comment thread pygmt/figure.py Resolved
Comment thread pygmt/tests/test_figure.py Resolved
@weiji14 weiji14 changed the title Figure.savefig recommends .eps or .pdf when .ps extension is used Let Figure.savefig recommend .eps or .pdf when .ps extension is used May 27, 2021
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label May 27, 2021
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label May 28, 2021
@seisman
seisman merged commit d9a0136 into master May 28, 2021
@seisman
seisman deleted the ps-extension branch May 28, 2021 15:16
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022

This branch was previously deployed

1 inactive deployment
Preview — 16a584ce Deployed May 28, 2021 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Figure.savefig should support postscript format

3 participants