Merge pull request #577 from acburigo/patch-1

BarGraphItem can plot horizontal bars.
This commit is contained in:
Luke Campagnola 2018-01-30 17:14:14 -08:00 committed by GitHub
commit deebc80fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ class BarGraphItem(GraphicsObject):
p.setPen(fn.mkPen(pen))
p.setBrush(fn.mkBrush(brush))
for i in range(len(x0)):
for i in range(len(x0 if not np.isscalar(x0) else y0)):
if pens is not None:
p.setPen(fn.mkPen(pens[i]))
if brushes is not None: