We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c51103a commit cc71085Copy full SHA for cc71085
1 file changed
lib/matplotlib/axis.py
@@ -33,12 +33,6 @@
33
_gridline_param_names = ['grid_' + name
34
for name in _line_param_names + _line_param_aliases]
35
36
-_MARKER_DICT = {
37
- 'out': (mlines.TICKDOWN, mlines.TICKUP),
38
- 'in': (mlines.TICKUP, mlines.TICKDOWN),
39
- 'inout': ('|', '|'),
40
-}
41
-
42
43
class Tick(martist.Artist):
44
"""
@@ -425,7 +419,11 @@ def _get_text2_transform(self):
425
419
def _apply_tickdir(self, tickdir):
426
420
# docstring inherited
427
421
super()._apply_tickdir(tickdir)
428
- mark1, mark2 = _MARKER_DICT[self._tickdir]
422
+ mark1, mark2 = {
423
+ 'out': (mlines.TICKDOWN, mlines.TICKUP),
424
+ 'in': (mlines.TICKUP, mlines.TICKDOWN),
+ 'inout': ('|', '|'),
+ }[self._tickdir]
429
self.tick1line.set_marker(mark1)
430
self.tick2line.set_marker(mark2)
431
0 commit comments