File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 24
24
from io import BytesIO
25
25
import pandas
26
26
27
- from distutils .version import StrictVersion
28
-
29
27
msun = 1.9892 * 10 ** 33
30
28
31
29
# Conviently the index of this list is the proton number
Original file line number Diff line number Diff line change 24
24
import matplotlib .patheffects as path_effects
25
25
import os
26
26
import random
27
- from io import BytesIO
27
+
28
28
from cycler import cycler
29
29
from scipy .interpolate import interp1d
30
- from distutils . spawn import find_executable
30
+ from shutil import which
31
31
import numpy .ma as ma
32
32
import warnings
33
33
@@ -1681,7 +1681,7 @@ def __init__(self, rcparams_fixed=True):
1681
1681
1682
1682
if rcparams_fixed :
1683
1683
# Set default matplotlib rcParameters (True by default)
1684
- if find_executable ("latex" ):
1684
+ if which ("latex" ):
1685
1685
mpl .rc ("text" , usetex = True )
1686
1686
else :
1687
1687
mpl .rc ("text" , usetex = False )
You can’t perform that action at this time.
0 commit comments