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

Skip to content

Commit 9aa41f5

Browse files
committed
Combine into single kwargs only test
1 parent b4b3235 commit 9aa41f5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

lib/matplotlib/tests/test_contour.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -695,18 +695,12 @@ def test_contour_remove():
695695
assert ax.get_children() == orig_children
696696

697697

698-
def test_contour_z_kwargonly():
698+
def test_contour_kwargsonly():
699699
# Smoke test for GH#24743
700700
# Passing only kwargs
701-
plt.contour(Z=np.random.rand(30, 30))
702-
703-
704-
def test_contour_xyz_kwargsonly():
705-
plt.contour(
706-
X=np.random.rand(30, 30),
707-
Y=np.random.rand(30, 30),
708-
Z=np.random.rand(30, 30)
709-
)
701+
data = [[0, 1], [1, 0]]
702+
plt.contour(Z=data)
703+
plt.contour(X=data, Y=data, Z=data)
710704

711705

712706
def test_contour_either_xy():

0 commit comments

Comments
 (0)