Skip to content

Commit 64ff7f3

Browse files
committed
Outward ticks (Fix matplotlib#4502)
1 parent 02c9c55 commit 64ff7f3

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎doc/users/whats_new/style_changes.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ These changes include:
1616
numbers. To use the old behavior, set the ``rcParam``
1717
``axes.autolimit_mode`` to ``round_numbers``.
1818

19+
- Ticks now point outward by default, and are 1pt longer. To have
20+
ticks pointing inward, use the ``rcParams`` ``xtick.direction`` and
21+
``ytick.direction``.
22+
1923
- The default cycle of colors to draw lines, markers and other content
2024
has been changed. It is based on the Dark2 qualitative color
2125
palette from `colorbrewer <http://colorbrewer2.org/>`__.

‎lib/matplotlib/rcsetup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def validate_cycler(s):
10551055

10561056
# fontsize of the xtick labels
10571057
'xtick.labelsize': ['medium', validate_fontsize],
1058-
'xtick.direction': ['in', six.text_type], # direction of xticks
1058+
'xtick.direction': ['out', six.text_type], # direction of xticks
10591059

10601060
'ytick.left': [True, validate_bool], # draw ticks on the left side
10611061
'ytick.right': [True, validate_bool], # draw ticks on the right side
@@ -1070,7 +1070,7 @@ def validate_cycler(s):
10701070

10711071
# fontsize of the ytick labels
10721072
'ytick.labelsize': ['medium', validate_fontsize],
1073-
'ytick.direction': ['in', six.text_type], # direction of yticks
1073+
'ytick.direction': ['out', six.text_type], # direction of yticks
10741074

10751075
'grid.color': ['#808080', validate_color], # grid color
10761076
'grid.linestyle': ['-', six.text_type], # solid

‎matplotlibrc.template‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ backend : %(backend)s
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
@@ -358,8 +357,7 @@ backend : %(backend)s
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
@@ -371,7 +369,7 @@ backend : %(backend)s
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)