From 10a8990099a9b0da2385c8723847885317e3cd3b 2014-04-30 18:17:32 From: MinRK Date: 2014-04-30 18:17:32 Subject: [PATCH] Backport PR #5758: Applied bug fix: using fc and ec did not properly set the figure canvas ... ...facecolor and edgecolor. This is resolves issue #5553 in which rcParams['figure.facecolor'] is ignored. The fix is now applied to master. --- diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index 265958e..5f00e92 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -118,8 +118,8 @@ def print_figure(fig, fmt='png', bbox_inches='tight', **kwargs): # build keyword args kw = dict( format=fmt, - fc=fig.get_facecolor(), - ec=fig.get_edgecolor(), + facecolor=fig.get_facecolor(), + edgecolor=fig.get_edgecolor(), dpi=dpi, bbox_inches=bbox_inches, )