Skip to content

Commit b76f239

Browse files
committed
Plot only unique points
1 parent 0ba3162 commit b76f239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsmodels/duration/survfunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def plot_survfunc(survfuncs, ax=None):
798798

799799
# Plot the censored points.
800800
ii = np.flatnonzero(np.logical_not(sf.status))
801-
ti = sf.time[ii]
801+
ti = np.unique(sf.time[ii])
802802
jj = np.searchsorted(surv_times, ti) - 1
803803
sp = surv_prob[jj]
804804
ax.plot(ti, sp, '+', ms=12, color=li.get_color(),

0 commit comments

Comments
 (0)