Skip to content

Commit 6427687

Browse files
committed
TST: Adding test to test_style (pandas-dev#3188)
1 parent ef9416c commit 6427687

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/plotting/test_style.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import matplotlib
12
import pytest
23

34
from pandas import Series
@@ -157,3 +158,11 @@ def test_empty_color_raises(self, color):
157158
def test_bad_color_raises(self, color):
158159
with pytest.raises(ValueError, match="Invalid color"):
159160
get_standard_colors(color=color, num_colors=5)
161+
162+
163+
class TestDefaultMplStyleParams:
164+
def test_mplback_plot_by_default_use_axes_grid_from_rcparams(self):
165+
166+
# GH 3188
167+
ax = Series([1, 2, 3, 4, 5]).plot()
168+
assert matplotlib.rcParams["axes.grid"] == ax._gridOn

0 commit comments

Comments
 (0)