Skip to content
Merged
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
5 changes: 4 additions & 1 deletion pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,10 @@ def test_line_area_stacked(self):
with pytest.raises(ValueError):
mixed_df.plot(stacked=True)

_check_plot_works(df.plot, kind=kind, logx=True, stacked=True)
# Use an index with strictly positive values, preventing
# matplotlib from warning about ignoring xlim
df2 = df.set_index(df.index + 1)
_check_plot_works(df2.plot, kind=kind, logx=True, stacked=True)

def test_line_area_nan_df(self):
values1 = [1, 2, np.nan, 3]
Expand Down