Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6333526

Browse filesBrowse files
committed
Merge pull request #5659 from three-comrades/fix_305_2
Change `savefig.dpi` and `figure.dpi` defaults
2 parents c679326 + 016406a commit 6333526
Copy full SHA for 6333526

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+2-2Lines 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

Copy file name to clipboardExpand all lines: matplotlibrc.template
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.