Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Added test for tricontour in test_datetime.py#27494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
maryamyounis wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
frommaryamyounis:test-tricontour
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletionslib/matplotlib/tests/test_datetime.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -734,11 +734,19 @@ def test_tricontour(self):
fig, ax = plt.subplots()
ax.tricontour(...)

@pytest.mark.xfail(reason="Test for tricontourf not written yet")
@mpl.style.context("default")
def test_tricontourf(self):
fig, ax = plt.subplots()
ax.tricontourf(...)
def test_tricontour(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It looks like you wrote the test fortricontour (the unfilled variant), but deleted the stub fortricontourf (the filled variant)

mpl.rcParams["date.converter"] = "concise"
fig, ax = plt.subplots()
range_threshold = 10
np.random.seed(19680801)
x_dates = np.array(
[datetime.datetime(2023, 10, n) for n in range(1, range_threshold)]
)
x_dates_numeric = mpl.dates.date2num(x_dates)
y_data = np.random.rand(range_threshold - 1) * range_threshold
z_data = np.sin(x_dates_numeric) + y_data**2


@pytest.mark.xfail(reason="Test for tripcolor not written yet")
@mpl.style.context("default")
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp