aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules/laser_injection_from_file/analysis.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Modules/laser_injection_from_file/analysis.py')
-rwxr-xr-xExamples/Modules/laser_injection_from_file/analysis.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Examples/Modules/laser_injection_from_file/analysis.py b/Examples/Modules/laser_injection_from_file/analysis.py
index 87ef197dd..9c8629215 100755
--- a/Examples/Modules/laser_injection_from_file/analysis.py
+++ b/Examples/Modules/laser_injection_from_file/analysis.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# This file is part of the WarpX automated test suite. It is used to test the
# injection of a laser pulse from an external binary file.
@@ -10,6 +10,8 @@
import yt ; yt.funcs.mylog.setLevel(50)
import numpy as np
+import matplotlib
+matplotlib.use('Agg')
import matplotlib.pyplot as plt
from scipy.signal import hilbert
import glob