Skip to content

Commit 042ee89

Browse files
committed
Merge pull request #6500 from efiring/font_10
Style: use 10-pt, no ticks on right, top
2 parents acfab37 + 0218994 commit 042ee89

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

lib/matplotlib/rcsetup.py

+21-21
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ def validate_hist_bins(s):
960960
'font.variant': ['normal', six.text_type],
961961
'font.stretch': ['normal', six.text_type],
962962
'font.weight': ['normal', six.text_type],
963-
'font.size': [12, validate_float], # Base font size in points
963+
'font.size': [10, validate_float], # Base font size in points
964964
'font.serif': [['DejaVu Serif', 'Bitstream Vera Serif',
965965
'New Century Schoolbook', 'Century Schoolbook L',
966966
'Utopia', 'ITC Bookman', 'Bookman',
@@ -1026,7 +1026,7 @@ def validate_hist_bins(s):
10261026
'axes.hold': [True, validate_bool],
10271027
'axes.facecolor': ['w', validate_color], # background color; white
10281028
'axes.edgecolor': ['k', validate_color], # edge color; black
1029-
'axes.linewidth': [1.0, validate_float], # edge linewidth
1029+
'axes.linewidth': [0.8, validate_float], # edge linewidth
10301030

10311031
'axes.spines.left': [True, validate_bool], # Set visibility of axes
10321032
'axes.spines.right': [True, validate_bool], # 'spines', the lines
@@ -1036,7 +1036,7 @@ def validate_hist_bins(s):
10361036
'axes.titlesize': ['large', validate_fontsize], # fontsize of the
10371037
# axes title
10381038
'axes.titleweight': ['normal', six.text_type], # font weight of axes title
1039-
'axes.titlepad': [9.0, validate_float], # pad from axes top to title in points
1039+
'axes.titlepad': [4.0, validate_float], # pad from axes top to title in points
10401040
'axes.grid': [False, validate_bool], # display grid or not
10411041
'axes.grid.which': ['major', validate_axis_locator], # set wether the gid are by
10421042
# default draw on 'major'
@@ -1046,7 +1046,7 @@ def validate_hist_bins(s):
10461046
# Can be 'x', 'y', 'both'
10471047
'axes.labelsize': ['medium', validate_fontsize], # fontsize of the
10481048
# x any y labels
1049-
'axes.labelpad': [5.0, validate_float], # space between label and axis
1049+
'axes.labelpad': [4.0, validate_float], # space between label and axis
10501050
'axes.labelweight': ['normal', six.text_type], # fontsize of the x any y labels
10511051
'axes.labelcolor': ['k', validate_color], # color of axis label
10521052
'axes.formatter.limits': [[-7, 7], validate_nseq_int(2)],
@@ -1138,14 +1138,14 @@ def validate_hist_bins(s):
11381138
'legend.edgecolor': ['none', validate_color_or_inherit],
11391139

11401140
# tick properties
1141-
'xtick.top': [True, validate_bool], # draw ticks on the top side
1141+
'xtick.top': [False, validate_bool], # draw ticks on the top side
11421142
'xtick.bottom': [True, validate_bool], # draw ticks on the bottom side
1143-
'xtick.major.size': [4, validate_float], # major xtick size in points
1143+
'xtick.major.size': [3.5, validate_float], # major xtick size in points
11441144
'xtick.minor.size': [2, validate_float], # minor xtick size in points
1145-
'xtick.major.width': [1.0, validate_float], # major xtick width in points
1146-
'xtick.minor.width': [1.0, validate_float], # minor xtick width in points
1147-
'xtick.major.pad': [4, validate_float], # distance to label in points
1148-
'xtick.minor.pad': [4, validate_float], # distance to label in points
1145+
'xtick.major.width': [0.8, validate_float], # major xtick width in points
1146+
'xtick.minor.width': [0.6, validate_float], # minor xtick width in points
1147+
'xtick.major.pad': [3.5, validate_float], # distance to label in points
1148+
'xtick.minor.pad': [3.4, validate_float], # distance to label in points
11491149
'xtick.color': ['k', validate_color], # color of the xtick labels
11501150
'xtick.minor.visible': [False, validate_bool], # visiablility of the x axis minor ticks
11511151

@@ -1154,13 +1154,13 @@ def validate_hist_bins(s):
11541154
'xtick.direction': ['out', six.text_type], # direction of xticks
11551155

11561156
'ytick.left': [True, validate_bool], # draw ticks on the left side
1157-
'ytick.right': [True, validate_bool], # draw ticks on the right side
1158-
'ytick.major.size': [4, validate_float], # major ytick size in points
1157+
'ytick.right': [False, validate_bool], # draw ticks on the right side
1158+
'ytick.major.size': [3.5, validate_float], # major ytick size in points
11591159
'ytick.minor.size': [2, validate_float], # minor ytick size in points
1160-
'ytick.major.width': [1.0, validate_float], # major ytick width in points
1161-
'ytick.minor.width': [1.0, validate_float], # minor ytick width in points
1162-
'ytick.major.pad': [4, validate_float], # distance to label in points
1163-
'ytick.minor.pad': [4, validate_float], # distance to label in points
1160+
'ytick.major.width': [0.8, validate_float], # major ytick width in points
1161+
'ytick.minor.width': [0.6, validate_float], # minor ytick width in points
1162+
'ytick.major.pad': [3.5, validate_float], # distance to label in points
1163+
'ytick.minor.pad': [3.4, validate_float], # distance to label in points
11641164
'ytick.color': ['k', validate_color], # color of the ytick labels
11651165
'ytick.minor.visible': [False, validate_bool], # visiablility of the y axis minor ticks
11661166

@@ -1170,7 +1170,7 @@ def validate_hist_bins(s):
11701170

11711171
'grid.color': ['#b0b0b0', validate_color], # grid color
11721172
'grid.linestyle': ['-', six.text_type], # solid
1173-
'grid.linewidth': [1.0, validate_float], # in points
1173+
'grid.linewidth': [0.8, validate_float], # in points
11741174
'grid.alpha': [1.0, validate_float],
11751175

11761176

@@ -1188,13 +1188,13 @@ def validate_hist_bins(s):
11881188
'figure.autolayout': [False, validate_bool],
11891189
'figure.max_open_warning': [20, validate_int],
11901190

1191-
'figure.subplot.left': [0.155, ValidateInterval(0, 1, closedmin=True,
1191+
'figure.subplot.left': [0.125, ValidateInterval(0, 1, closedmin=True,
11921192
closedmax=True)],
1193-
'figure.subplot.right': [0.87, ValidateInterval(0, 1, closedmin=True,
1193+
'figure.subplot.right': [0.9, ValidateInterval(0, 1, closedmin=True,
11941194
closedmax=True)],
1195-
'figure.subplot.bottom': [0.13, ValidateInterval(0, 1, closedmin=True,
1195+
'figure.subplot.bottom': [0.11, ValidateInterval(0, 1, closedmin=True,
11961196
closedmax=True)],
1197-
'figure.subplot.top': [0.87, ValidateInterval(0, 1, closedmin=True,
1197+
'figure.subplot.top': [0.88, ValidateInterval(0, 1, closedmin=True,
11981198
closedmax=True)],
11991199
'figure.subplot.wspace': [0.2, ValidateInterval(0, 1, closedmin=True,
12001200
closedmax=False)],

matplotlibrc.template

+23-23
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ backend : $TEMPLATE_BACKEND
190190
# property is not currently implemented.
191191
#
192192
# The font.size property is the default font size for text, given in pts.
193-
# 12pt is the standard value.
193+
# 10 pt is the standard value.
194194
#
195195
#font.family : sans-serif
196196
#font.style : normal
@@ -202,7 +202,7 @@ backend : $TEMPLATE_BACKEND
202202
# settings for axes and ticks. Special text sizes can be defined
203203
# relative to font.size, using the following values: xx-small, x-small,
204204
# small, medium, large, x-large, xx-large, larger, or smaller
205-
#font.size : 12.0
205+
#font.size : 10.0
206206
#font.serif : DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
207207
#font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
208208
#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive
@@ -294,12 +294,12 @@ backend : $TEMPLATE_BACKEND
294294
#axes.hold : True # whether to clear the axes by default on
295295
#axes.facecolor : white # axes background color
296296
#axes.edgecolor : black # axes edge color
297-
#axes.linewidth : 1.0 # edge linewidth
297+
#axes.linewidth : 0.8 # edge linewidth
298298
#axes.grid : False # display grid or not
299299
#axes.titlesize : large # fontsize of the axes title
300-
#axes.titlepad : 9.0 # pad between axes and title in points
300+
#axes.titlepad : 4.0 # pad between axes and title in points
301301
#axes.labelsize : medium # fontsize of the x any y labels
302-
#axes.labelpad : 5.0 # space between label and axis
302+
#axes.labelpad : 4.0 # space between label and axis
303303
#axes.labelweight : normal # weight of the x and y labels
304304
#axes.labelcolor : black
305305
#axes.axisbelow : 'line' # draw axis gridlines and ticks below
@@ -361,27 +361,27 @@ backend : $TEMPLATE_BACKEND
361361

362362
### TICKS
363363
# see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick
364-
#xtick.top : True # draw ticks on the top side
364+
#xtick.top : False # draw ticks on the top side
365365
#xtick.bottom : True # draw ticks on the bottom side
366-
#xtick.major.size : 4 # major tick size in points
366+
#xtick.major.size : 3.5 # major tick size in points
367367
#xtick.minor.size : 2 # minor tick size in points
368-
#xtick.major.width : 1.0 # major tick width in points
369-
#xtick.minor.width : 1.0 # minor tick width in points
370-
#xtick.major.pad : 4 # distance to major tick label in points
371-
#xtick.minor.pad : 4 # distance to the minor tick label in points
368+
#xtick.major.width : 0.8 # major tick width in points
369+
#xtick.minor.width : 0.6 # minor tick width in points
370+
#xtick.major.pad : 3.5 # distance to major tick label in points
371+
#xtick.minor.pad : 3.4 # distance to the minor tick label in points
372372
#xtick.color : k # color of the tick labels
373373
#xtick.labelsize : medium # fontsize of the tick labels
374374
#xtick.direction : out # direction: in, out, or inout
375375
#xtick.minor.visible : False # visibility of minor ticks on x-axis
376376

377377
#ytick.left : True # draw ticks on the left side
378-
#ytick.right : True # draw ticks on the right side
379-
#ytick.major.size : 4 # major tick size in points
378+
#ytick.right : False # draw ticks on the right side
379+
#ytick.major.size : 3.5 # major tick size in points
380380
#ytick.minor.size : 2 # minor tick size in points
381-
#ytick.major.width : 1.0 # major tick width in points
382-
#ytick.minor.width : 1.0 # minor tick width in points
383-
#ytick.major.pad : 4 # distance to major tick label in points
384-
#ytick.minor.pad : 4 # distance to the minor tick label in points
381+
#ytick.major.width : 0.8 # major tick width in points
382+
#ytick.minor.width : 0.6 # minor tick width in points
383+
#ytick.major.pad : 3.5 # distance to major tick label in points
384+
#ytick.minor.pad : 3.4 # distance to the minor tick label in points
385385
#ytick.color : k # color of the tick labels
386386
#ytick.labelsize : medium # fontsize of the tick labels
387387
#ytick.direction : out # direction: in, out, or inout
@@ -391,7 +391,7 @@ backend : $TEMPLATE_BACKEND
391391
### GRIDS
392392
#grid.color : b0b0b0 # grid color
393393
#grid.linestyle : - # solid
394-
#grid.linewidth : 1.0 # in points
394+
#grid.linewidth : 0.8 # in points
395395
#grid.alpha : 1.0 # transparency, between 0.0 and 1.0
396396

397397
### Legend
@@ -431,14 +431,14 @@ backend : $TEMPLATE_BACKEND
431431
# If less than one this feature is disabled.
432432

433433
# The figure subplot parameters. All dimensions are a fraction of the
434-
# figure width or height
435-
#figure.subplot.left : 0.155 # the left side of the subplots of the figure
436-
#figure.subplot.right : 0.87 # the right side of the subplots of the figure
437-
#figure.subplot.bottom : 0.13 # the bottom of the subplots of the figure
438-
#figure.subplot.top : 0.87 # the top of the subplots of the figure
434+
#figure.subplot.left : 0.125 # the left side of the subplots of the figure
435+
#figure.subplot.right : 0.9 # the right side of the subplots of the figure
436+
#figure.subplot.bottom : 0.11 # the bottom of the subplots of the figure
437+
#figure.subplot.top : 0.88 # the top of the subplots of the figure
439438
#figure.subplot.wspace : 0.2 # the amount of width reserved for blank space between subplots
440439
#figure.subplot.hspace : 0.2 # the amount of height reserved for white space between subplots
441440

441+
442442
### IMAGES
443443
#image.aspect : equal # equal | auto | a number
444444
#image.interpolation : nearest # see help(imshow) for options

0 commit comments

Comments
 (0)