Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
912 changes: 446 additions & 466 deletions pandas/tests/plotting/common.py

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions pandas/tests/plotting/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
)


@pytest.fixture(autouse=True)
def reset_rcParams():
mpl = pytest.importorskip("matplotlib")
with mpl.rc_context():
yield


@pytest.fixture(autouse=True)
def close_all_figures():
yield
plt = pytest.importorskip("matplotlib.pyplot")
plt.close("all")


@pytest.fixture
def hist_df():
n = 100
Expand Down
Loading