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

Skip to content

Commit 2131d3d

Browse files
tacaswellJulian Mehne
authored andcommitted
MNT : python3 compatibility updates
1 parent 07a3f80 commit 2131d3d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/matplotlib/legend_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ def create_artists(self, legend, orig_handle,
501501

502502
return artists
503503

504+
504505
class HandlerStem(HandlerNpointsYoffsets):
505506
"""
506507
Handler for Errorbars
@@ -612,13 +613,14 @@ def create_artists(self, legend, orig_handle,
612613
width = (width - pad*(ndivide - 1)) / ndivide
613614

614615
xds = [xdescent - (width + pad) * i for i in range(ndivide)]
615-
xd_next = cycle(xds).next
616+
xds_cycle = cycle(xds)
616617

617618
a_list = []
618619
for handle1 in orig_handle:
619620
handler = legend.get_legend_handler(handler_map, handle1)
620621
_a_list = handler.create_artists(legend, handle1,
621-
xd_next(), ydescent,
622+
six.next(xds_cycle),
623+
ydescent,
622624
width, height,
623625
fontsize,
624626
trans)

0 commit comments

Comments
 (0)