10000 fix the plot directive · matplotlib/matplotlib@15fa214 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15fa214

Browse files
committed
fix the plot directive
svn path=/branches/v1_0_maint/; revision=8895
1 parent 85217d6 commit 15fa214

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,10 @@ def run_savefig(plot_path, basename, tmpdir, destdir, formats):
263263

264264
return len(fig_managers)
265265

266+
266267
def clear_state():
267268
plt.close('all')
268-
matplotlib.rcdefaults()
269-
# Set a default figure size that doesn't overflow typical browser
270-
# windows. The script is free to override it if necessary.
271-
matplotlib.rcParams['figure.figsize'] = (5.5, 4.5)
269+
matplotlib.rc_file_defaults()
272270

273271
def render_figures(plot_path, function_name, plot_code, tmpdir, destdir,
274272
formats, context=False):

0 commit comments

Comments
 (0)
0