Skip to content

Commit 134a58f

Browse files
committed
Run matplotlib magic after rcParams reset
1 parent f15eac3 commit 134a58f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

notebook/plot_conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# matplotlib and stuff
22
import matplotlib.pyplot as plt
33

4-
# %matplotlib inline # not from script
5-
get_ipython().run_line_magic('matplotlib', 'inline')
6-
74

85
def plt_style(c='k'):
96
"""
@@ -15,8 +12,12 @@ def plt_style(c='k'):
1512
import matplotlib as mpl
1613
from matplotlib import rc
1714

18-
# configuration for bright background
15+
# Reset previous configuration
1916
mpl.rcParams.update(mpl.rcParamsDefault)
17+
# %matplotlib inline # not from script
18+
get_ipython().run_line_magic('matplotlib', 'inline')
19+
20+
# configuration for bright background
2021
if c == 'w':
2122
plt.style.use('bmh')
2223

0 commit comments

Comments
 (0)