Skip to content

Commit f42d53e

Browse files
committed
PEP8
1 parent 2db3419 commit f42d53e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from matplotlib.externals import six
55
from matplotlib.externals.six.moves import reduce, xrange, zip, zip_longest
66

7+
import itertools
78
import math
89
import warnings
910

@@ -2565,6 +2566,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
25652566
get_next_color = self._get_patches_for_fill.get_next_color
25662567
else:
25672568
color_cycler = itertools.cycle(colors)
2569+
25682570
def get_next_color():
25692571
return six.next(color_cycler)
25702572

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def set_prop_cycle(self, *args, **kwargs):
173173
prop_cycler = cycler(*args, **kwargs)
174174

175175
# Make sure the cycler always has at least one color
176-
if not 'color' in prop_cycler.keys:
176+
if 'color' not in prop_cycler.keys:
177177
prop_cycler = prop_cycler * cycler('color', ['k'])
178178

179179
self.prop_cycler = itertools.cycle(prop_cycler)

0 commit comments

Comments
 (0)