forked from GenericMappingTools/pygmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Figure.show for displaying previews in Jupyter notebooks and …
…external viewers (GenericMappingTools#529) Figure.show() now is able to detect the current running environment, and display previews in Jupyter notebooks, or open previews using external viewers. This PR also provides `pygmt.set_display()` to change the display method globally. Setting environmental variable `PYGMT_USE_EXTERNAL_DISPLAY ` to `false` can disable external viewers, mostly for running tests and building the documentations. Figure.show() no longer returns the Image object. Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Meghan Jones <[email protected]>
- Loading branch information
1 parent
7c4bb30
commit cb2d4b5
Showing
6 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters