Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. a = [0,1, 1,3, 3,9, 9, 12, 12, 18, 18,20, 20]
  3. b = [100,100, 90,90, 80,80, 68,68, 54,54, 35,35, 15]
  4. plt.plot(a, b)
  5. plt.plot(a,b,"rD", markevery=2)
  6. plt.xlabel('Follow-up time(months)')
  7. plt.ylabel('Cummiliative Survival(%)')
  8. plt.title('Kaplan-Meier Curve')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement