Skip to content

Commit

Permalink
Always use Agg backend
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Jan 8, 2025
1 parent da17ade commit e61685b
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 24 deletions.
3 changes: 1 addition & 2 deletions tst/scripts/binary/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "binary"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/binary_adi/binary_adi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "binary_adi"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/collisions/collisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "collisions"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/coords/blast.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import h5py
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "blast"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/diffusion/alpha_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "alpha_disk"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/diffusion/thermal_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "thermal_diffusion"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/diffusion/viscous_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "viscous_diffusion"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/disk/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "disk"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/disk_nbody/disk_nbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "disk_nbody"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/drag/drag.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "drag"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/nbody/nbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "nbody"
Expand Down
3 changes: 1 addition & 2 deletions tst/scripts/ssheet/ssheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib
if not os.getenv('DISPLAY'):
matplotlib.use('Agg') # Use the Agg backend if no display is available
matplotlib.use('Agg') # Use the Agg backend to avoid issues with DISPLAY not being set

_nranks = 1
_file_id = "ssheet"
Expand Down

0 comments on commit e61685b

Please sign in to comment.