@@ -254,10 +254,6 @@ def validate_font_properties(s):
254
254
def deprecate_savefig_extension (value ):
255
255
warnings .warn ("savefig.extension is deprecated. Use savefig.format instead." )
256
256
257
- validate_savefig_format = ValidateInStrings ('savefig_format' ,
258
- ['png' , 'ps' , 'pdf' , 'svg' ],
259
- ignorecase = True )
260
-
261
257
validate_ps_papersize = ValidateInStrings ('ps_papersize' ,[
262
258
'auto' , 'letter' , 'legal' , 'ledger' ,
263
259
'a0' , 'a1' , 'a2' ,'a3' , 'a4' , 'a5' , 'a6' , 'a7' , 'a8' , 'a9' , 'a10' ,
@@ -550,7 +546,7 @@ def __call__(self, s):
550
546
'savefig.edgecolor' : ['w' , validate_color ], # edgecolor; white
551
547
'savefig.orientation' : ['portrait' , validate_orientation ], # edgecolor; white
552
548
'savefig.extension' : ['png' , deprecate_savefig_extension ], # what to add to extensionless filenames
553
- 'savefig.format' : ['png' , validate_savefig_format ],
549
+ 'savefig.format' : ['png' , str ], # value checked by backend at runtime
554
550
555
551
'tk.window_focus' : [False , validate_bool ], # Maintain shell focus for TkAgg
556
552
'tk.pythoninspect' : [False , validate_tkpythoninspect ], # obsolete
0 commit comments