Skip to content

Commit b865e24

Browse files
authored
Merge pull request statsmodels#6124 from sursu/fix-plot-duplicate_points
Plot only unique censored points
2 parents 3d92588 + b76f239 commit b865e24

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)