Skip to content

set_display(method="none") still displays the images #2447

Closed

Description

@seisman

Description of the problem

pygmt.set_display(method="none") should disable image display, but currently, it still displays the image in Jupyter Notebooks.

Minimal Complete Verifiable Example

import pygmt

pygmt.set_display(method="none")

fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 10], frame=True, projection="X10c")
fig.show()

Full error message

The image is displayed.

System information

PyGMT information:
  version: v0.8.1.dev108+ge970485e6
System information:
  python: 3.10.9 | packaged by conda-forge | (main, Feb  2 2023, 20:20:04) [GCC 11.3.0]
  executable: /home/seisman/opt/mambaforge/bin/python
  machine: Linux-6.1.18-200.fc37.x86_64-x86_64-with-glibc2.36
Dependency information:
  numpy: 1.23.5
  pandas: 1.5.3
  xarray: 2023.2.0
  netCDF4: 1.6.3
  packaging: 23.0
  contextily: None
  geopandas: 0.12.2
  ghostscript: 9.54.0
GMT library information:
  binary version: 6.4.0
  cores: 80
  grid layout: rows
  image layout: 
  library path: /home/seisman/opt/mambaforge/lib/libgmt.so
  padding: 2
  plugin dir: /home/seisman/opt/mambaforge/lib/gmt/plugins
  share dir: /home/seisman/opt/mambaforge/share/gmt
  version: 6.4.0

Activity

  1. added
    bug
    on Mar 21, 2023
  2. added this to the 0.9.0 milestone on Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions