Skip to content

Commit

Permalink
Fix matplotlib warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdanal committed May 26, 2024
1 parent 16d331c commit f324108
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,22 +486,23 @@ def test_plot_scatter(close_figures) -> None:
),
Axes,
)
check(
assert_type(
IRIS_DF.plot.scatter(x="SepalLength", y="SepalWidth", subplots=True),
npt.NDArray[np.object_],
),
np.ndarray,
)
check(
assert_type(
IRIS_DF.plot(
x="SepalLength", y="SepalWidth", subplots=True, kind="scatter"
with pytest.warns(UserWarning):
check(
assert_type(
IRIS_DF.plot.scatter(x="SepalLength", y="SepalWidth", subplots=True),
npt.NDArray[np.object_],
),
npt.NDArray[np.object_],
),
np.ndarray,
)
np.ndarray,
)
check(
assert_type(
IRIS_DF.plot(
x="SepalLength", y="SepalWidth", subplots=True, kind="scatter"
),
npt.NDArray[np.object_],
),
np.ndarray,
)


def test_plot_keywords(close_figures):
Expand Down

0 comments on commit f324108

Please sign in to comment.