@@ -965,7 +965,7 @@ def _print_ps(self, outfile, format, *args, **kwargs):
965
965
966
966
def _print_figure (self , outfile , format , dpi = 72 , facecolor = 'w' , edgecolor = 'w' ,
967
967
orientation = 'portrait' , isLandscape = False , papertype = None ,
968
- ** kwargs ):
968
+ metadata = None , ** kwargs ):
969
969
"""
970
970
Render the figure to hardcopy. Set the figure patch face and
971
971
edge colors. This is useful because some of the GUIs have a
@@ -978,6 +978,9 @@ def _print_figure(self, outfile, format, dpi=72, facecolor='w', edgecolor='w',
978
978
979
979
If outfile is a file object, a stand-alone PostScript file is
980
980
written into this file object.
981
+
982
+ metadata must be a dictionary. Currently, only the value for
983
+ the key 'Creator' is used.
981
984
"""
982
985
isEPSF = format == 'eps'
983
986
passed_in_file_object = False
@@ -1060,7 +1063,6 @@ def write(self, *kl, **kwargs):
1060
1063
self .figure .set_edgecolor (origedgecolor )
1061
1064
1062
1065
# check for custom metadata
1063
- metadata = kwargs .pop ("metadata" , None )
1064
1066
if metadata is not None and 'Creator' in metadata :
1065
1067
creator_str = metadata ['Creator' ]
1066
1068
else :
0 commit comments