We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
savefig.dpi
figure.dpi
1 parent 92e57c8 commit a903315Copy full SHA for a903315
lib/matplotlib/rcsetup.py
@@ -1086,7 +1086,7 @@ def validate_hist_bins(s):
1086
1087
# figure size in inches: width by height
1088
'figure.figsize': [[8.0, 6.0], validate_nseq_float(2)],
1089
- 'figure.dpi': [80, validate_float], # DPI
+ 'figure.dpi': [100, validate_float], # DPI
1090
'figure.facecolor': ['0.75', validate_color], # facecolor; scalar gray
1091
'figure.edgecolor': ['w', validate_color], # edgecolor; white
1092
'figure.frameon': [True, validate_bool],
@@ -1107,7 +1107,7 @@ def validate_hist_bins(s):
1107
closedmax=False)],
1108
1109
## Saving figure's properties
1110
- 'savefig.dpi': [100, validate_dpi], # DPI
+ 'savefig.dpi': ['figure', validate_dpi], # DPI
1111
'savefig.facecolor': ['w', validate_color], # facecolor; white
1112
'savefig.edgecolor': ['w', validate_color], # edgecolor; white
1113
'savefig.frameon': [True, validate_bool],
matplotlibrc.template
@@ -390,7 +390,7 @@ backend : %(backend)s
390
#figure.titlesize : medium # size of the figure title
391
#figure.titleweight : normal # weight of the figure title
392
#figure.figsize : 8, 6 # figure size in inches
393
-#figure.dpi : 80 # figure dots per inch
+#figure.dpi : 100 # figure dots per inch
394
#figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray
395
#figure.edgecolor : white # figure edgecolor
396
#figure.autolayout : False # When True, automatically adjust subplot
@@ -463,7 +463,7 @@ backend : %(backend)s
463
# the default savefig params can be different from the display params
464
# e.g., you may want a higher resolution, or to make the figure
465
# background white
466
-#savefig.dpi : 100 # figure dots per inch
+#savefig.dpi : figure # figure dots per inch or 'figure'
467
#savefig.facecolor : white # figure facecolor when saving
468
#savefig.edgecolor : white # figure edgecolor when saving
469
#savefig.format : png # png, ps, pdf, svg
0 commit comments