File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,10 @@ def validate_bbox(s):
476
476
if s == 'standard' :
477
477
return None
478
478
raise ValueError ("bbox should be 'tight' or 'standard'" )
479
+ elif s is not None :
480
+ # Backwards compatibility. None is equivalent to 'standard'.
481
+ raise ValueError ("bbox should be 'tight' or 'standard'" )
482
+ return s
479
483
480
484
def validate_sketch (s ):
481
485
if isinstance (s , six .string_types ):
@@ -790,7 +794,7 @@ def __call__(self, s):
790
794
# value checked by backend at runtime
791
795
'savefig.format' : ['png' , update_savefig_format ],
792
796
# options are 'tight', or 'standard'. 'standard' validates to None.
793
- 'savefig.bbox' : [None , validate_bbox ],
797
+ 'savefig.bbox' : ['standard' , validate_bbox ],
794
798
'savefig.pad_inches' : [0.1 , validate_float ],
795
799
# default directory in savefig dialog box
796
800
'savefig.directory' : ['~' , six .text_type ],
You can’t perform that action at this time.
0 commit comments