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

Skip to content

Commit 016406a

Browse files
committed
Change savefig.dpi and figure.dpi defaults
Closes #305.
1 parent bdb8450 commit 016406a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def validate_hist_bins(s):
10921092

10931093
# figure size in inches: width by height
10941094
'figure.figsize': [[8.0, 6.0], validate_nseq_float(2)],
1095-
'figure.dpi': [80, validate_float], # DPI
1095+
'figure.dpi': [100, validate_float], # DPI
10961096
'figure.facecolor': ['0.75', validate_color], # facecolor; scalar gray
10971097
'figure.edgecolor': ['w', validate_color], # edgecolor; white
10981098
'figure.frameon': [True, validate_bool],
@@ -1113,7 +1113,7 @@ def validate_hist_bins(s):
11131113
closedmax=False)],
11141114

11151115
## Saving figure's properties
1116-
'savefig.dpi': [100, validate_dpi], # DPI
1116+
'savefig.dpi': ['figure', validate_dpi], # DPI
11171117
'savefig.facecolor': ['w', validate_color], # facecolor; white
11181118
'savefig.edgecolor': ['w', validate_color], # edgecolor; white
11191119
'savefig.frameon': [True, validate_bool],

matplotlibrc.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ backend : %(backend)s
390390
#figure.titlesize : medium # size of the figure title
391391
#figure.titleweight : normal # weight of the figure title
392392
#figure.figsize : 8, 6 # figure size in inches
393-
#figure.dpi : 80 # figure dots per inch
393+
#figure.dpi : 100 # figure dots per inch
394394
#figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray
395395
#figure.edgecolor : white # figure edgecolor
396396
#figure.autolayout : False # When True, automatically adjust subplot
@@ -463,7 +463,7 @@ backend : %(backend)s
463463
# the default savefig params can be different from the display params
464464
# e.g., you may want a higher resolution, or to make the figure
465465
# background white
466-
#savefig.dpi : 100 # figure dots per inch
466+
#savefig.dpi : figure # figure dots per inch or 'figure'
467467
#savefig.facecolor : white # figure facecolor when saving
468468
#savefig.edgecolor : white # figure edgecolor when saving
469469
#savefig.format : png # png, ps, pdf, svg

0 commit comments

Comments
 (0)