Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 76d681b

Browse filesBrowse files
committed
Use iterator rather than index
1 parent f255c33 commit 76d681b
Copy full SHA for 76d681b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,11 +2340,11 @@ def broken_barh(self, xranges, yrange, **kwargs):
23402340
"""
23412341
# process the unit information
23422342
if len(xranges):
2343-
xdata = xranges[0]
2343+
xdata = six.next(iter(xranges))
23442344
else:
23452345
xdata = None
23462346
if len(yrange):
2347-
ydata = yrange[0]
2347+
ydata = six.next(iter(yranges))
23482348
else:
23492349
ydata = None
23502350
self._process_unit_info(xdata=xdata,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.