Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82d2655

Browse files
committed
API: shrink default figure size
downscale the figure size to account for the increase in DPI but keep the default size of the figure (in pixels) the same.
1 parent 9a74cd7 commit 82d2655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ def validate_hist_bins(s):
11211121
'figure.titleweight': ['normal', six.text_type],
11221122

11231123
# figure size in inches: width by height
1124-
'figure.figsize': [[8.0, 6.0], validate_nseq_float(2)],
1124+
'figure.figsize': [[6.4, 4.8], validate_nseq_float(2)],
11251125
'figure.dpi': [100, validate_float], # DPI
11261126
'figure.facecolor': ['w', validate_color], # facecolor; white
11271127
'figure.edgecolor': ['w', validate_color], # edgecolor; white

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ backend : $TEMPLATE_BACKEND
415415
# See http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure
416416
#figure.titlesize : medium # size of the figure title
417417
#figure.titleweight : normal # weight of the figure title
418-
#figure.figsize : 8, 6 # figure size in inches
418+
#figure.figsize : 6.4, 4.8 # figure size in inches
419419
#figure.dpi : 100 # figure dots per inch
420420
#figure.facecolor : white # figure facecolor; 0.75 is scalar gray
421421
#figure.edgecolor : white # figure edgecolor

0 commit comments

Comments
 (0)