Skip to content

Commit 1273dea

Browse files
author
Ingo Fründ
committed
markeredge color does not affect tick color
1 parent c2627f0 commit 1273dea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/axis.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ def __init__(self, axes, loc, label=None,
148148
self.tick1line = mlines.Line2D(
149149
[], [],
150150
color=color, linestyle="none", zorder=zorder, visible=tick1On,
151-
markersize=size, markeredgewidth=width,
151+
markeredgecolor=color, markersize=size, markeredgewidth=width,
152152
)
153153
self.tick2line = mlines.Line2D(
154154
[], [],
155155
color=color, linestyle="none", zorder=zorder, visible=tick2On,
156-
markersize=size, markeredgewidth=width,
156+
markeredgecolor=color, markersize=size, markeredgewidth=width,
157157
)
158158
self.gridline = mlines.Line2D(
159159
[], [],
@@ -352,6 +352,8 @@ def _apply_params(self, **kw):
352352
trans = self._get_text2_transform()[0]
353353
self.label2.set_transform(trans)
354354
tick_kw = {k: v for k, v in kw.items() if k in ['color', 'zorder']}
355+
if 'color' in kw:
356+
tick_kw['markeredgecolor'] = kw['color']
355357
self.tick1line.set(**tick_kw)
356358
self.tick2line.set(**tick_kw)
357359
for k, v in tick_kw.items():

0 commit comments

Comments
 (0)