Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2627f0

Browse files
author
Ingo Fründ
committed
tests for tick color compare properties
1 parent 6372f1d commit c2627f0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6129,3 +6129,19 @@ def test_invisible_axes():
61296129
assert fig.canvas.inaxes((200, 200)) is not None
61306130
ax.set_visible(False)
61316131
assert fig.canvas.inaxes((200, 200)) is None
6132+
6133+
6134+
def test_xtickcolor_is_not_markercolor():
6135+
plt.rcParams['lines.markeredgecolor'] = 'white'
6136+
ax = plt.axes()
6137+
ticks = ax.xaxis.get_major_ticks()
6138+
for tick in ticks:
6139+
assert not tick.tick1line.get_markeredgecolor() == 'white'
6140+
6141+
6142+
def test_ytickcolor_is_not_markercolor():
6143+
plt.rcParams['lines.markeredgecolor'] = 'white'
6144+
ax = plt.axes()
6145+
ticks = ax.yaxis.get_major_ticks()
6146+
for tick in ticks:
6147+
assert not tick.tick1line.get_markeredgecolor() == 'white'

0 commit comments

Comments
 (0)