Skip to content

Commit 0dfbf8c

Browse files
committed
Restored Matplotlib 1.x style.
1 parent eb9d30c commit 0dfbf8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bbp/utils/batch/bbp_converge.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
import shutil
3333
import argparse
3434
import numpy as np
35+
import matplotlib.style
3536
import matplotlib as mpl
37+
mpl.style.use('classic')
3638
if mpl.get_backend() != 'agg':
3739
mpl.use('Agg') # Disables use of Tk/X11
3840
import pylab
@@ -183,6 +185,10 @@ def plot_results(bias_data, codebase, colormap, output_file):
183185
"""
184186
Generate plot showing results calculated from all realizations
185187
"""
188+
# Restore Matplotlib 1.x style
189+
mpl.rcParams['image.interpolation'] = 'bilinear'
190+
mpl.rcParams['image.resample'] = False
191+
186192
fig, ax = pylab.plt.subplots()
187193
xlocs = range(1, bias_data["num_periods"] + 1)
188194
ylocs = list(np.full(bias_data["num_periods"],

0 commit comments

Comments
 (0)