Skip to content

Commit 5050ffe

Browse files
GH1089 PR Feedback
1 parent e3d18b4 commit 5050ffe

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pyright = ">=1.1.396"
4343
poethepoet = ">=0.16.5"
4444
loguru = ">=0.6.0"
4545
typing-extensions = ">=4.4.0"
46-
matplotlib = ">=3.6.3"
46+
matplotlib = ">=3.10.1"
4747
pre-commit = ">=2.19.0"
4848
black = ">=23.3.0"
4949
isort = ">=5.12.0"

tests/test_plotting.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Union,
66
)
77

8-
import matplotlib as mpl
98
from matplotlib.axes import Axes
109
from matplotlib.figure import Figure
1110
import matplotlib.pyplot as plt
@@ -14,7 +13,6 @@
1413
import numpy.typing as npt
1514
import pandas as pd
1615
from pandas import Series
17-
from pandas.util.version import Version
1816
import pytest
1917
from typing_extensions import assert_type
2018

@@ -579,22 +577,13 @@ def test_plot_keywords(close_figures):
579577
)
580578

581579
df = pd.DataFrame(np.random.rand(10, 5), columns=["A", "B", "C", "D", "E"])
582-
if Version(mpl.__version__) >= Version("3.10.1"):
583-
check(
584-
assert_type(
585-
df.plot(kind="box", orientation="vertical", positions=[1, 4, 5, 6, 8]),
586-
Axes,
587-
),
588-
Axes,
589-
)
590-
else:
591-
check(
592-
assert_type(
593-
df.plot(kind="box", vert=False, positions=[1, 4, 5, 6, 8]),
594-
Axes,
595-
),
580+
check(
581+
assert_type(
582+
df.plot(kind="box", orientation="vertical", positions=[1, 4, 5, 6, 8]),
596583
Axes,
597-
)
584+
),
585+
Axes,
586+
)
598587

599588

600589
def test_plot_subplot_changes_150() -> None:
@@ -620,7 +609,7 @@ def test_grouped_dataframe_boxplot(close_figures):
620609
check(assert_type(grouped.boxplot(subplots=True), Series), Series)
621610

622611
# a single plot
623-
if not PD_LTE_22 and Version(mpl.__version__) >= Version("3.10.1"):
612+
if not PD_LTE_22:
624613
check(
625614
assert_type(
626615
grouped.boxplot(
@@ -665,7 +654,7 @@ def test_grouped_dataframe_boxplot_single(close_figures):
665654
Axes,
666655
)
667656

668-
if not PD_LTE_22 and Version(mpl.__version__) >= Version("3.10.1"):
657+
if not PD_LTE_22:
669658
check(
670659
assert_type(
671660
grouped.boxplot(

0 commit comments

Comments
 (0)