Skip to content

Commit 9f4ee49

Browse files
committed
Making plot helper compatible with Python > 3.11
1 parent 72fa09e commit 9f4ee49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pySDC/helpers/plot_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import matplotlib as mpl
22
import matplotlib.pyplot as plt
3-
from distutils.spawn import find_executable
3+
import shutil
44

55
default_mpl_params = mpl.rcParams.copy()
66

@@ -100,7 +100,7 @@ def setup_mpl(font_size=8, reset=False):
100100

101101
mpl.rcParams.update(style_options)
102102

103-
if find_executable('latex'):
103+
if shutil.which('latex'):
104104
latex_support = {
105105
"pgf.texsystem": "pdflatex", # change this if using xetex or lautex
106106
"text.usetex": True, # use LaTeX to write all text

0 commit comments

Comments
 (0)