@@ -38,7 +38,7 @@ def auto_adjust_subplotpars(fig, renderer,
3838 num1num2_list ,
3939 subplot_list ,
4040 ax_bbox_list = None ,
41- pad = 1.2 , h_pad = None , w_pad = None ,
41+ pad = 1.08 , h_pad = None , w_pad = None ,
4242 rect = None ):
4343 """
4444 Return a dictionary of subplot parameters so that spacing between
@@ -71,15 +71,15 @@ def auto_adjust_subplotpars(fig, renderer,
7171
7272 rows , cols = nrows_ncols
7373
74- pad_inches = pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / renderer . dpi
74+ pad_inches = pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / 72.
7575
7676 if h_pad is not None :
77- vpad_inches = h_pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / renderer . dpi
77+ vpad_inches = h_pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / 72.
7878 else :
7979 vpad_inches = pad_inches
8080
8181 if w_pad is not None :
82- hpad_inches = w_pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / renderer . dpi
82+ hpad_inches = w_pad * FontProperties (size = rcParams ["font.size" ]).get_size_in_points () / 72.
8383 else :
8484 hpad_inches = pad_inches
8585
@@ -210,7 +210,7 @@ def get_renderer(fig):
210210
211211
212212def get_tight_layout_figure (fig , axes_list , renderer ,
213- pad = 1.2 , h_pad = None , w_pad = None , rect = None ):
213+ pad = 1.08 , h_pad = None , w_pad = None , rect = None ):
214214 """
215215 return subplot parameters for tigh-layouted- figure with
216216 specified padding.
0 commit comments