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 5695389

Browse filesBrowse files
committed
Outward ticks (Fix #4502)
1 parent 5317d35 commit 5695389
Copy full SHA for 5695389

File tree

Expand file treeCollapse file tree

2 files changed

+12
-14
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-14
lines changed

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,31 +1070,31 @@ def validate_hist_bins(s):
10701070
'xtick.bottom': [True, validate_bool], # draw ticks on the bottom side
10711071
'xtick.major.size': [4, validate_float], # major xtick size in points
10721072
'xtick.minor.size': [2, validate_float], # minor xtick size in points
1073-
'xtick.major.width': [0.5, validate_float], # major xtick width in points
1074-
'xtick.minor.width': [0.5, validate_float], # minor xtick width in points
1073+
'xtick.major.width': [1.0, validate_float], # major xtick width in points
1074+
'xtick.minor.width': [1.0, validate_float], # minor xtick width in points
10751075
'xtick.major.pad': [4, validate_float], # distance to label in points
10761076
'xtick.minor.pad': [4, validate_float], # distance to label in points
10771077
'xtick.color': ['k', validate_color], # color of the xtick labels
10781078
'xtick.minor.visible': [False, validate_bool], # visiablility of the x axis minor ticks
10791079

10801080
# fontsize of the xtick labels
10811081
'xtick.labelsize': ['medium', validate_fontsize],
1082-
'xtick.direction': ['in', six.text_type], # direction of xticks
1082+
'xtick.direction': ['out', six.text_type], # direction of xticks
10831083

10841084
'ytick.left': [True, validate_bool], # draw ticks on the left side
10851085
'ytick.right': [True, validate_bool], # draw ticks on the right side
10861086
'ytick.major.size': [4, validate_float], # major ytick size in points
10871087
'ytick.minor.size': [2, validate_float], # minor ytick size in points
1088-
'ytick.major.width': [0.5, validate_float], # major ytick width in points
1089-
'ytick.minor.width': [0.5, validate_float], # minor ytick width in points
1088+
'ytick.major.width': [1.0, validate_float], # major ytick width in points
1089+
'ytick.minor.width': [1.0, validate_float], # minor ytick width in points
10901090
'ytick.major.pad': [4, validate_float], # distance to label in points
10911091
'ytick.minor.pad': [4, validate_float], # distance to label in points
10921092
'ytick.color': ['k', validate_color], # color of the ytick labels
10931093
'ytick.minor.visible': [False, validate_bool], # visiablility of the y axis minor ticks
10941094

10951095
# fontsize of the ytick labels
10961096
'ytick.labelsize': ['medium', validate_fontsize],
1097-
'ytick.direction': ['in', six.text_type], # direction of yticks
1097+
'ytick.direction': ['out', six.text_type], # direction of yticks
10981098

10991099
'grid.color': ['#b0b0b0', validate_color], # grid color
11001100
'grid.linestyle': ['-', six.text_type], # solid

‎matplotlibrc.template

Copy file name to clipboardExpand all lines: matplotlibrc.template
+6-8Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,31 +347,29 @@ backend : $TEMPLATE_BACKEND
347347

348348
### TICKS
349349
# see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick
350-
351350
#xtick.top : True # draw ticks on the top side
352351
#xtick.bottom : True # draw ticks on the bottom side
353352
#xtick.major.size : 4 # major tick size in points
354353
#xtick.minor.size : 2 # minor tick size in points
355-
#xtick.major.width : 0.5 # major tick width in points
356-
#xtick.minor.width : 0.5 # minor tick width in points
354+
#xtick.major.width : 1.0 # major tick width in points
355+
#xtick.minor.width : 1.0 # minor tick width in points
357356
#xtick.major.pad : 4 # distance to major tick label in points
358357
#xtick.minor.pad : 4 # distance to the minor tick label in points
359358
#xtick.color : k # color of the tick labels
360359
#xtick.labelsize : medium # fontsize of the tick labels
361-
#xtick.direction : in # direction: in, out, or inout
362-
360+
#xtick.direction : out # direction: in, out, or inout
363361

364362
#ytick.left : True # draw ticks on the left side
365363
#ytick.right : True # draw ticks on the right side
366364
#ytick.major.size : 4 # major tick size in points
367365
#ytick.minor.size : 2 # minor tick size in points
368-
#ytick.major.width : 0.5 # major tick width in points
369-
#ytick.minor.width : 0.5 # minor tick width in points
366+
#ytick.major.width : 1.0 # major tick width in points
367+
#ytick.minor.width : 1.0 # minor tick width in points
370368
#ytick.major.pad : 4 # distance to major tick label in points
371369
#ytick.minor.pad : 4 # distance to the minor tick label in points
372370
#ytick.color : k # color of the tick labels
373371
#ytick.labelsize : medium # fontsize of the tick labels
374-
#ytick.direction : in # direction: in, out, or inout
372+
#ytick.direction : out # direction: in, out, or inout
375373

376374

377375
### GRIDS

0 commit comments

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