@@ -254,10 +254,6 @@ def validate_font_properties(s):
254254def deprecate_savefig_extension (value ):
255255 warnings .warn ("savefig.extension is deprecated. Use savefig.format instead." )
256256
257- validate_savefig_format = ValidateInStrings ('savefig_format' ,
258- ['png' , 'ps' , 'pdf' , 'svg' ],
259- ignorecase = True )
260-
261257validate_ps_papersize = ValidateInStrings ('ps_papersize' ,[
262258 'auto' , 'letter' , 'legal' , 'ledger' ,
263259 'a0' , 'a1' , 'a2' ,'a3' , 'a4' , 'a5' , 'a6' , 'a7' , 'a8' , 'a9' , 'a10' ,
@@ -550,7 +546,7 @@ def __call__(self, s):
550546 'savefig.edgecolor' : ['w' , validate_color ], # edgecolor; white
551547 'savefig.orientation' : ['portrait' , validate_orientation ], # edgecolor; white
552548 '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
554550
555551 'tk.window_focus' : [False , validate_bool ], # Maintain shell focus for TkAgg
556552 'tk.pythoninspect' : [False , validate_tkpythoninspect ], # obsolete
0 commit comments