We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ec551 commit 1ad1c5eCopy full SHA for 1ad1c5e
stagpy/__init__.py
@@ -68,16 +68,16 @@ def load_mplstyle():
68
plt = importlib.import_module('matplotlib.pyplot')
69
if conf.plot.mplstyle:
70
for style in conf.plot.mplstyle.split():
71
- stfile = config.CONFIG_DIR / (style + '.mplstyle')
72
- if stfile.is_file():
73
- style = str(stfile)
74
- if ISOLATED:
75
- break
+ if not ISOLATED:
+ stfile = config.CONFIG_DIR / (style + '.mplstyle')
+ if stfile.is_file():
+ style = str(stfile)
76
try:
77
plt.style.use(style)
78
except OSError:
79
- print('Cannot import style {}.'.format(style),
80
- file=sys.stderr)
+ if not ISOLATED or DEBUG:
+ print('Cannot import style {}.'.format(style),
+ file=sys.stderr)
81
conf.plot.mplstyle = ''
82
if conf.plot.xkcd:
83
plt.xkcd()
0 commit comments