Skip to content

Commit 37734e8

Browse files
committed
REF: import cycler from matplotlib.pyplot
1 parent b8daf79 commit 37734e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/plotting/test_style.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from cycler import cycler
21
import pytest
32

43
from pandas import Series
@@ -19,6 +18,7 @@ class TestGetStandardColors:
1918
)
2019
def test_default_colors_named_from_prop_cycle(self, num_colors, expected):
2120
import matplotlib as mpl
21+
from matplotlib.pyplot import cycler
2222

2323
mpl_params = {
2424
"axes.prop_cycle": cycler(color=["red", "green", "blue"]),
@@ -39,6 +39,7 @@ def test_default_colors_named_from_prop_cycle(self, num_colors, expected):
3939
)
4040
def test_default_colors_named_from_prop_cycle_string(self, num_colors, expected):
4141
import matplotlib as mpl
42+
from matplotlib.pyplot import cycler
4243

4344
mpl_params = {
4445
"axes.prop_cycle": cycler(color="bgry"),

0 commit comments

Comments
 (0)