Skip to content

Commit a903315

Browse files
jmehneefiring
authored andcommitted
Change savefig.dpi and figure.dpi defaults
Closes #305.
1 parent 92e57c8 commit a903315

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/rcsetup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ def validate_hist_bins(s):
10861086

10871087
# figure size in inches: width by height
10881088
'figure.figsize': [[8.0, 6.0], validate_nseq_float(2)],
1089-
'figure.dpi': [80, validate_float], # DPI
1089+
'figure.dpi': [100, validate_float], # DPI
10901090
'figure.facecolor': ['0.75', validate_color], # facecolor; scalar gray
10911091
'figure.edgecolor': ['w', validate_color], # edgecolor; white
10921092
'figure.frameon': [True, validate_bool],
@@ -1107,7 +1107,7 @@ def validate_hist_bins(s):
11071107
closedmax=False)],
11081108

11091109
## Saving figure's properties
1110-
'savefig.dpi': [100, validate_dpi], # DPI
1110+
'savefig.dpi': ['figure', validate_dpi], # DPI
11111111
'savefig.facecolor': ['w', validate_color], # facecolor; white
11121112
'savefig.edgecolor': ['w', validate_color], # edgecolor; white
11131113
'savefig.frameon': [True, validate_bool],

matplotlibrc.template

+2-2
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)