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 dbaf19d

Browse filesBrowse files
authored
Merge pull request #13443 from anntzer/rccomments
Remove some outdated comments from rcsetup.py.
2 parents b9045cd + 638c175 commit dbaf19d
Copy full SHA for dbaf19d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ def _validate_linestyle(ls):
11461146

11471147
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
11481148
'image.interpolation': ['nearest', validate_string],
1149-
'image.cmap': ['viridis', validate_string], # one of gray, jet, etc
1149+
'image.cmap': ['viridis', validate_string], # gray, jet, etc.
11501150
'image.lut': [256, validate_int], # lookup table
11511151
'image.origin': ['upper',
11521152
ValidateInStrings('image.origin', ['upper', 'lower'])],
@@ -1317,13 +1317,11 @@ def _validate_linestyle(ls):
13171317
'ytick.direction': ['out', validate_string], # direction of yticks
13181318
'ytick.alignment': ["center_baseline", _validate_alignment],
13191319

1320-
13211320
'grid.color': ['#b0b0b0', validate_color], # grid color
13221321
'grid.linestyle': ['-', _validate_linestyle], # solid
13231322
'grid.linewidth': [0.8, validate_float], # in points
13241323
'grid.alpha': [1.0, validate_float],
13251324

1326-
13271325
## figure props
13281326
# figure title
13291327
'figure.titlesize': ['large', validate_fontsize],
@@ -1369,8 +1367,7 @@ def _validate_linestyle(ls):
13691367
'savefig.facecolor': ['white', validate_color],
13701368
'savefig.edgecolor': ['white', validate_color],
13711369
'savefig.frameon': [True, validate_bool],
1372-
'savefig.orientation': ['portrait', validate_orientation], # edgecolor;
1373-
#white
1370+
'savefig.orientation': ['portrait', validate_orientation],
13741371
'savefig.jpeg_quality': [95, validate_int],
13751372
# value checked by backend at runtime
13761373
'savefig.format': ['png', update_savefig_format],
@@ -1386,7 +1383,7 @@ def _validate_linestyle(ls):
13861383

13871384
# Set the papersize/type
13881385
'ps.papersize': ['letter', validate_ps_papersize],
1389-
'ps.useafm': [False, validate_bool], # Set PYTHONINSPECT
1386+
'ps.useafm': [False, validate_bool],
13901387
# use ghostscript or xpdf to distill ps output
13911388
'ps.usedistiller': [False, validate_ps_distiller],
13921389
'ps.distiller.res': [6000, validate_int], # dpi

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.