Skip to content

Commit bdfb81d

Browse files
committed
Renamed bbox option from 'default' to 'standard'
1 parent 88b3661 commit bdfb81d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/rcsetup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ def validate_bbox(s):
330330
s = s.lower()
331331
if s == 'tight':
332332
return s
333-
if s == 'default':
333+
if s == 'standard':
334334
return None
335-
raise ValueError("bbox should be 'tight' or 'default'")
335+
raise ValueError("bbox should be 'tight' or 'standard'")
336336

337337

338338

@@ -559,7 +559,7 @@ def __call__(self, s):
559559
'savefig.orientation' : ['portrait', validate_orientation], # edgecolor; white
560560
'savefig.extension' : ['png', deprecate_savefig_extension], # what to add to extensionless filenames
561561
'savefig.format' : ['png', str], # value checked by backend at runtime
562-
'savefig.bbox' : [None, validate_bbox], # options are 'tight', or 'default'. 'default' validates to None.
562+
'savefig.bbox' : [None, validate_bbox], # options are 'tight', or 'standard'. 'standard' validates to None.
563563
'savefig.pad_inches' : [0.1, validate_float],
564564

565565
'tk.window_focus' : [False, validate_bool], # Maintain shell focus for TkAgg

matplotlibrc.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ text.hinting_factor : 8 # Specifies the amount of softness for hinting in the
350350
#savefig.facecolor : white # figure facecolor when saving
351351
#savefig.edgecolor : white # figure edgecolor when saving
352352
#savefig.format : png # png, ps, pdf, svg
353-
#savefig.bbox : default # 'tight' or 'default'.
353+
#savefig.bbox : standard # 'tight' or 'standard'.
354354
#savefig.pad_inches : 0.1 # Padding to be used when bbox is set to 'tight'
355355

356356
# tk backend params

0 commit comments

Comments
 (0)