Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59f3cc7

Browse files
tacaswellJulian Mehne
authored andcommitted
MNT : move import to top level
1 parent ffe8ed4 commit 59f3cc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/legend_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def legend_artist(self, legend, orig_handle, fontsize, handlebox):
2929

3030
from matplotlib.externals import six
3131
from matplotlib.externals.six.moves import zip
32+
from itertools import cycle
3233

3334
import numpy as np
3435

@@ -593,7 +594,6 @@ def create_artists(self, legend, orig_handle,
593594
width = (width - pad*(ndivide - 1)) / ndivide
594595

595596
xds = [xdescent - (width + pad) * i for i in range(ndivide)]
596-
from itertools import cycle
597597
xd_next = cycle(xds).next
598598

599599
a_list = []

0 commit comments

Comments
 (0)