Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita903315

Browse files
jmehneefiring
authored andcommitted
Changesavefig.dpi andfigure.dpi defaults
Closes#305.
1 parent92e57c8 commita903315

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
@@ -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

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)

[8]ページ先頭

©2009-2025 Movatter.jp