Skip to content

Commit

Permalink
Slightly better location for legend, but overlaps above plot sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
mehtank committed Sep 14, 2016
1 parent 87176d6 commit e50ff68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def pcolor_multi(title, (xrng, xlabel),
axarr[-1].plot(yrng, ts, label="lane %s" % sid)

axarr[-1].set_ylabel("Average loop speed (m/s)")
axarr[-1].legend()
axarr[-1].legend(bbox_to_anchor=(0., 1.02, 1., .051), loc=3,
ncol=numlanes, mode="expand", borderaxespad=0.)
axarr[-1].set_xlabel(ylabel)
fig.text(0.5, 0.975, title,
horizontalalignment='center', verticalalignment='top')
Expand Down

0 comments on commit e50ff68

Please sign in to comment.