-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathef_vs_sc.py
More file actions
26 lines (18 loc) · 874 Bytes
/
ef_vs_sc.py
File metadata and controls
26 lines (18 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Author: Nicholas Mosca
# ejection fraction vs serum creatine
from data_editing import *
import matplotlib.pyplot as plt
# scatter plot
# plt.scatter(death_sc, death_ef, marker='^',label = 'dead',color = 'blue')
# plt.scatter(living_sc, living_ef, marker='o', label = 'survived',color = 'orange')
# plt.plot([death_sc.min(), death_sc.max()], [living_ef.min(), living_ef.max()], 'r--')
# plt.legend(loc = ' upper center')
fig = plt.figure(figsize=(30,20),dpi= 800)
ax1 = fig.add_subplot(221)
ax1.scatter(living_sc, living_ef, marker='o', label = 'survived',color = 'orange')
ax1.scatter(death_sc, death_ef, marker='^',label = 'dead',color = 'blue')
ax1.plot([death_sc.min(), death_sc.max()], [living_ef.min(), living_ef.max()], 'r--')
ax1.set_xlabel("serum creatine")
ax1.set_ylabel("ejection fraction")
ax1.legend(loc = 'lower right')
plt.savefig("Figure_3.png")