Skip to content

Commit

Permalink
get graph on same page; fix travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Nov 27, 2015
1 parent e41f4ce commit b8c6e6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- pwd
- export PATH=/home/travis/miniconda2/bin:$PATH
- export PYTHONPATH=/home/travis/cuthbertLab/music21base
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
Expand Down
4 changes: 2 additions & 2 deletions music21/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,8 @@ def process(self):
# then start y position, bar height
faceColor = getColor(self.colors[i % len(self.colors)])

ax.broken_barh(points, (yPos + self._margin, self._barHeight),
facecolors=faceColor, alpha=self.alpha)
yrange = (yPos + self._margin, self._barHeight)
ax.broken_barh(points, yrange, facecolors=faceColor, alpha=self.alpha)
for xStart, xLen in points:
xEnd = xStart + xLen
for x in [xStart, xEnd]:
Expand Down

0 comments on commit b8c6e6a

Please sign in to comment.