Skip to content

Commit

Permalink
Merge pull request #106 from better/reset-color-cycle
Browse files Browse the repository at this point in the history
reset color cycle between plots, for multiple models
  • Loading branch information
Erik Bernhardsson committed Aug 15, 2019
2 parents 64c539d + ce58fbc commit d6187b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convoys/plotting.py
Expand Up @@ -69,6 +69,7 @@ def plot_cohorts(G, B, T, t_max=None, model='kaplan-meier',
# Plot
t = numpy.linspace(0, t_max, 1000)
_, y_max = ax.get_ylim()
ax.set_prop_cycle(None) # Reset to first color
for i, group in enumerate(specific_groups):
j = groups.index(group) # matching index of group

Expand Down

0 comments on commit d6187b6

Please sign in to comment.