Skip to content

Commit

Permalink
option for baselines without labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisk42 committed Nov 27, 2019
1 parent 9cae929 commit 36b752c
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions bin/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,23 @@ def plotECResult(
print("baseline",name,bl)
name = name.replace(',','\n')
bl = float(bl)
plot.axhline(bl,-0.5,iterations,
color='k',lw=3)
solveAxis.text(iterations, bl, name, ha='left', va='center', fontweight='bold',
fontsize=TICKFONTSIZE)
if name.startswith('style'):
name = name[len('style'):]
color = name[0]
if len(name) > 1:
style = name[1:]
else:
style = '-'
plot.axhline(bl,-0.5,iterations,
color=color,lw=3,
linestyle=style,
zorder=-1.)
else:
plot.axhline(bl,-0.5,iterations,
color='k',lw=3,
zorder=-1.)
solveAxis.text(iterations, bl, name, ha='left', va='center', fontweight='bold',
fontsize=TICKFONTSIZE)
plot.subplots_adjust(right=0.9)

if solveAxis and likelihood is None:
Expand Down

0 comments on commit 36b752c

Please sign in to comment.