@@ -979,7 +979,7 @@ def _print_ps(self, outfile, format, *args, **kwargs):
979
979
980
980
def _print_figure (self , outfile , format , dpi = 72 , facecolor = 'w' , edgecolor = 'w' ,
981
981
orientation = 'portrait' , isLandscape = False , papertype = None ,
982
- ** kwargs ):
982
+ metadata = None , ** kwargs ):
983
983
"""
984
984
Render the figure to hardcopy. Set the figure patch face and
985
985
edge colors. This is useful because some of the GUIs have a
@@ -992,6 +992,9 @@ def _print_figure(self, outfile, format, dpi=72, facecolor='w', edgecolor='w',
992
992
993
993
If outfile is a file object, a stand-alone PostScript file is
994
994
written into this file object.
995
+
996
+ metadata must be a dictionary. Currently, only the value for
997
+ the key 'Creator' is used.
995
998
"""
996
999
isEPSF = format == 'eps'
997
1000
passed_in_file_object = False
@@ -1074,7 +1077,6 @@ def write(self, *kl, **kwargs):
1074
1077
self .figure .set_edgecolor (origedgecolor )
1075
1078
1076
1079
# check for custom metadata
1077
- metadata = kwargs .pop ("metadata" , None )
1078
1080
if metadata is not None and 'Creator' in metadata :
1079
1081
creator_str = metadata ['Creator' ]
1080
1082
else :
0 commit comments