From 016406acccd665796a0a5dbc6448912ea450400c Mon Sep 17 00:00:00 2001 From: Julian Mehne Date: Thu, 10 Dec 2015 17:58:40 +0100 Subject: [PATCH] Change `savefig.dpi` and `figure.dpi` defaults Closes #305. --- lib/matplotlib/rcsetup.py | 4 ++-- matplotlibrc.template | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index fa88462cbd6c..57f4549d2290 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -1092,7 +1092,7 @@ def validate_hist_bins(s): # figure size in inches: width by height 'figure.figsize': [[8.0, 6.0], validate_nseq_float(2)], - 'figure.dpi': [80, validate_float], # DPI + 'figure.dpi': [100, validate_float], # DPI 'figure.facecolor': ['0.75', validate_color], # facecolor; scalar gray 'figure.edgecolor': ['w', validate_color], # edgecolor; white 'figure.frameon': [True, validate_bool], @@ -1113,7 +1113,7 @@ def validate_hist_bins(s): closedmax=False)], ## Saving figure's properties - 'savefig.dpi': [100, validate_dpi], # DPI + 'savefig.dpi': ['figure', validate_dpi], # DPI 'savefig.facecolor': ['w', validate_color], # facecolor; white 'savefig.edgecolor': ['w', validate_color], # edgecolor; white 'savefig.frameon': [True, validate_bool], diff --git a/matplotlibrc.template b/matplotlibrc.template index 604b1036d911..5c9139067dee 100644 --- a/matplotlibrc.template +++ b/matplotlibrc.template @@ -390,7 +390,7 @@ backend : %(backend)s #figure.titlesize : medium # size of the figure title #figure.titleweight : normal # weight of the figure title #figure.figsize : 8, 6 # figure size in inches -#figure.dpi : 80 # figure dots per inch +#figure.dpi : 100 # figure dots per inch #figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray #figure.edgecolor : white # figure edgecolor #figure.autolayout : False # When True, automatically adjust subplot @@ -463,7 +463,7 @@ backend : %(backend)s # the default savefig params can be different from the display params # e.g., you may want a higher resolution, or to make the figure # background white -#savefig.dpi : 100 # figure dots per inch +#savefig.dpi : figure # figure dots per inch or 'figure' #savefig.facecolor : white # figure facecolor when saving #savefig.edgecolor : white # figure edgecolor when saving #savefig.format : png # png, ps, pdf, svg