Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
May 28, 2021

Conversation

seisman
Copy link
Member

@seisman seisman commented May 27, 2021

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
pygmt/figure.py Show resolved Hide resolved
pygmt/figure.py Outdated Show resolved Hide resolved
pygmt/tests/test_figure.py Outdated Show resolved Hide 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
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