In the old implementation, we change gmt end show to gmt end to avoid opening the images in external image viewers. This method changes the original script and doesn't work for GMT's one-liners.
In this PR, we set GMT_END_SHOW to off to disable image display, which works for both gmt end show and GMT one-liners.
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.
[ ] If adding new functionality, add an example to docstrings or tutorials.
Description of proposed changes
In the old implementation, we change
gmt end show
togmt end
to avoid opening the images in external image viewers. This method changes the original script and doesn't work for GMT's one-liners.In this PR, we set
GMT_END_SHOW
tooff
to disable image display, which works for bothgmt end show
and GMT one-liners.Reminders
make format
andmake check
to make sure the code follows the style guide.