10000 Add tests · matplotlib/matplotlib@b03e3b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b03e3b7

Browse files
Add tests
1 parent 5f0b714 commit b03e3b7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7229,6 +7229,7 @@ def invert(x):
72297229
secax(0.4, functions=(lambda x: 2 * x, lambda x: x / 2))
72307230
secax(0.6, functions=(lambda x: x**2, lambda x: x**(1/2)))
72317231
secax(0.8)
7232+
secax(6.25, transform=ax.transData)
72327233

72337234

72347235
def test_secondary_fail():
@@ -7240,6 +7241,8 @@ def test_secondary_fail():
72407241
ax.secondary_xaxis('right')
72417242
with pytest.raises(ValueError):
72427243
ax.secondary_yaxis('bottom')
7244+
with pytest.raises(ValueError):
7245+
ax.secondary_xaxis(0.2, transform='error')
72437246

72447247

72457248
def test_secondary_resize():

0 commit comments

Comments
 (0)
0