Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9aa41f5

Browse filesBrowse files
committed
Combine into single kwargs only test
1 parent b4b3235 commit 9aa41f5
Copy full SHA for 9aa41f5

File tree

Expand file treeCollapse file tree

1 file changed

+4
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-10
lines changed

‎lib/matplotlib/tests/test_contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_contour.py
+4-10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.