Commit 4ad8a00a authored by Keith Bennett's avatar Keith Bennett

Allow sdf_helper to be imported without matlab

parent 06b8c1e5
import os
import re
import glob
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.transforms import Bbox
from matplotlib.offsetbox import HPacker, VPacker, TextArea, AnchoredOffsetbox
try:
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.transforms import Bbox
from matplotlib.offsetbox import HPacker, VPacker, TextArea, \
AnchoredOffsetbox
except:
pass
try:
from mpl_toolkits.axes_grid1 import make_axes_locatable
except:
# Workaround for broken macOS installation
import sys
import matplotlib
sys.path.append(os.path.join(matplotlib.__path__[0], '..', 'mpl_toolkits'))
from axes_grid1 import make_axes_locatable
try:
# Workaround for broken macOS installation
import sys
import matplotlib
sys.path.append(os.path.join(matplotlib.__path__[0], \
'..', 'mpl_toolkits'))
from axes_grid1 import make_axes_locatable
except:
pass
try:
import builtins
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment