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

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

Closed
seisman opened this issue Mar 21, 2023 · 0 comments · Fixed by #2450
Closed

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

seisman opened this issue Mar 21, 2023 · 0 comments · Fixed by #2450
Labels
bug Something isn't working
Milestone

Comments

@seisman
Copy link
Member

seisman commented Mar 21, 2023

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
@seisman seisman added the bug Something isn't working label Mar 21, 2023
@seisman seisman added this to the 0.9.0 milestone Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant