Skip to content

Commit

Permalink
Plot reversals
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Luke committed Mar 29, 2015
1 parent 003e288 commit e0a3782
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UpDownMethods/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def plot_results(results, midpoints=False, figure=None, estimate=False,
plt.scatter(incorr.index+1, incorr.Value, s=50, marker='_', c='k')

# Indicate reversals
# reversal = results[results['Reversal'] == True]
# plt.scatter(reversal.index+1, reversal.Value, facecolors='none',
# edgecolors='k', s=200)
if reversals:
reversal = results[results['Reversal'] == True]
if len(reversal) > 0:
plt.scatter(reversal.index+1, reversal.Value, facecolors='none',
edgecolors='k', s=200)

# Track the runs
runs = ud.runs(results)
Expand Down

0 comments on commit e0a3782

Please sign in to comment.