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

Skip to content

Commit dcf50b3

Browse files
committed
Merge remote-tracking branch 'matplotlib/v1.5.x' into v2.x
Conflicts: lib/matplotlib/tests/baseline_images/test_path/xkcd.pdf lib/matplotlib/tests/baseline_images/test_path/xkcd.png lib/matplotlib/tests/baseline_images/test_path/xkcd.svg images from master branch used lib/matplotlib/tests/test_axes.py kept both tests
2 parents 144aa6b + 781000c commit dcf50b3

File tree

6 files changed

+12039
-11987
lines changed

6 files changed

+12039
-11987
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,8 +2336,16 @@ def broken_barh(self, xranges, yrange, **kwargs):
23362336
.. plot:: mpl_examples/pylab_examples/broken_barh.py
23372337
"""
23382338
# process the unit information
2339-
self._process_unit_info(xdata=xranges[0],
2340-
ydata=yrange[0],
2339+
if len(xranges):
2340+
xdata = six.next(iter(xranges))
2341+
else:
2342+
xdata = None
2343+
if len(yrange):
2344+
ydata = six.next(iter(yrange))
2345+
else:
2346+
ydata = None
2347+
self._process_unit_info(xdata=xdata,
2348+
ydata=ydata,
23412349
kwargs=kwargs)
23422350
xranges = self.convert_xunits(xranges)
23432351
yrange = self.convert_yunits(yrange)
Binary file not shown.
Loading

0 commit comments

Comments
 (0)