pygmt.Figure.show

Figure.show()[source]

Display a preview of the figure.

Inserts the preview in the Jupyter notebook output, otherwise opens it in the default viewer for your operating system (falls back to the default web browser). Note that the external viewer does not block the current process, so this won’t work in a script.

pygmt.set_display can select the default display mode (either “notebook” or “external”).

The external viewer can also be disabled by setting the PYGMT_DISABLE_EXTERNAL_DISPLAY environment variable to true. This is mainly used for running our tests and building the documentation.