Skip to content

Commit 2001986

Browse files
committed
Check if axes.autolimit_mode is supported in matplotlib, closes #28
1 parent a38ae54 commit 2001986

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scimpy/speakermodel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
import scipy.optimize
1212

1313

14-
matplotlib.rcParams['axes.autolimit_mode'] = 'round_numbers'
14+
try:
15+
matplotlib.rcParams['axes.autolimit_mode'] = 'round_numbers'
16+
except KeyError:
17+
logging.warn("matplotlib axes.autolimit_mode=round_number not supported")
1518

1619

1720
def cheby_a1(k):

0 commit comments

Comments
 (0)