-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_graphics.py
More file actions
56 lines (41 loc) · 10.6 KB
/
Copy pathplot_graphics.py
File metadata and controls
56 lines (41 loc) · 10.6 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import pylab,os
listOfCaseIDs = [10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 122, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 143, 144, 145, 146, 147, 149, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 268, 270, 271, 272, 273, 274, 276, 277, 279, 283, 284, 288, 289, 290, 291, 292, 294, 295, 296, 297, 298]
prostate_volumes = [45.524062500000014, 18.821742187500007, 27.97651171875001, 115.57875000000004, 39.94954687500001, 33.03308203125002, 37.762347656250014, 50.35324218750002, 132.03815625000007, 28.06321875000001, 15.959835937500003, 124.69102734375004, 41.09568750000001, 74.08512890625002, 230.7865546875001, 54.37876296490429, 103.44748355746272, 48.164954066276565, 66.99379259347918, 73.79744531250003, 43.20651562500001, 56.21142187500002, 52.723617187500025, 34.546148437500015, 22.840125000000008, 20.815429687500004, 113.07228515625003, 26.67246093750001, 80.83736718750002, 37.01299218750001, 14.12912109375, 12.92025, 36.182320312499996, 43.924499999999995, 98.43375, 24.000780518531798, 13.74075, 31.586249999999996, 35.70975, 35.3925, 56.32425, 62.436, 43.52775, 84.468, 47.235, 66.05624999999999, 49.8225, 68.59124999999999, 31.95075, 26.4195, 30.326249999999998, 24.82875, 26.646, 82.79249999999999, 83.58375, 50.085, 4.8374999999999995, 3.1013554687500013, 45.540749999999996, 51.336, 52.94625, 83.145, 86.25524999999999, 104.23049999999999, 51.318749999999994, 52.6575, 142.6155, 68.892, 39.45525, 65.718, 70.68375, 96.04275, 102.55575, 28.6785, 55.0815, 70.9275, 34.314, 51.61575, 80.00025, 28.41225, 89.62049999999999, 39.338249999999995, 75.62025, 155.14049999999997, 35.89875, 39.46875, 36.3705, 52.77225, 64.25475, 54.711749999999995, 66.31275000000001, 39.57899999999999, 56.698499999999996, 61.6125, 35.46375, 61.59675, 75.07575, 61.025999999999996, 123.26474999999999, 50.07599999999999, 60.77101448893546, 28.40175, 48.50475, 81.07124999999999, 61.87649999999999, 71.92949999999999, 45.8565, 19.2645, 67.37174999999999, 68.16675, 38.1765, 79.70625, 66.85125000000001, 17.84475, 61.84949999999999, 105.50625, 47.86874999999999, 54.02325, 110.75099999999999, 67.72725, 61.161, 39.76649999999999, 39.76649999999999, 30.72225, 112.72725, 127.03049999999999, 75.29175, 93.195, 31.053749999999997, 53.477999999999994, 48.23325, 51.219, 31.23225, 73.44525, 57.244499999999995, 124.11449999999999, 45.197250000000004, 35.64975, 111.91799999999999, 61.37774999999999, 38.8245, 32.88075, 37.2735, 55.17525, 73.91625, 49.3935, 132.67125, 71.01599999999999, 79.788, 84.774, 47.00625, 72.17325, 48.63525, 93.579, 94.78575000000001, 58.80075, 35.879999999999995, 40.51499999999999, 70.06949999999999, 73.52924999999999, 138.8025, 59.429249999999996, 119.51925, 47.17425, 220.17674999999997, 38.60779909229278, 31.3185, 57.6915, 29.638499999999997, 85.20074999999999, 45.40125, 45.102, 47.10525, 57.9525, 57.7185, 96.54225, 50.0535, 49.40025, 86.913, 114.83475, 95.928, 80.14874999999999, 46.26525, 45.684749999999994, 47.031, 49.41225, 82.73849999999999, 44.80949999999999, 53.661, 37.58625, 111.9015, 68.80575, 194.02949999999998, 34.17075, 54.318, 66.91125, 39.84675, 84.42899999999999, 54.772499999999994, 88.6005, 41.181, 40.018499999999996, 122.03174999999999, 62.644499999999994, 53.85525, 42.3255, 146.30174999999997, 43.491749999999996, 70.30575, 91.33274999999999, 110.66775, 47.03475, 32.240249999999996, 40.6905, 142.29749999999999, 54.993, 66.69675, 31.66725, 153.654, 37.26675, 61.304249999999996, 20.787, 44.650499999999994, 70.83824999999999, 104.32649999999998, 113.22075, 46.972500000000004, 70.509, 58.91025, 85.61175, 93.999, 123.57974999999999, 59.430749999999996, 40.189499999999995, 50.46375, 48.0045, 118.17975, 35.172000000000004, 58.06725, 48.557249999999996, 291.861, 46.437, 123.95474999999999, 60.796499999999995, 138.81375, 44.64675, 46.61775, 34.2315, 138.26325, 57.797999999999995, 45.94804687500003, 167.676, 114.51328125000006, 101.51250000000005, 95.75625000000005, 80.10937500000004, 51.60000000000003, 52.15312500000003, 39.06796875000002, 64.99921875000003, 147.3023437500001, 84.42890625000004, 70.79765625000003, 28.204687500000013, 68.95664062500003]
procedureTimesInSeconds = [7028.500000000004, 6995.983999999997, 5372.218999999997, 7587.812000000005, 7806.578000000001, 4828.171999999999, 5386.155999999999, 6207.578000000001, 4195.718999999997, 5351.344000000005, 5986.156999999999, 3886.7350000000006, 6286.031999999999, 7480.015999999996, 7783.937999999998, 5201.905999999999, 5221.5, 4154.235000000001, 5539.233999999997, 4358.734000000004, 5609.922000000002, 6779.875000000004, 5138.0, 4871.561999999998, 1654.421000000002, 3348.8280000000013, 4768.358999999997, 4771.515999999996, 5731.016, 3551.0469999999987, 3680.9540000000015, 4351.063000000002, 5012.234, 3565.8750000000036, 5378.530999999999, 2294.936999999998, 5366.343999999997, 5561.093999999997, 4415.390999999996, 3768.3120000000017, 5640.656000000003, 4138.25, 4995.593000000001, 7131.219000000001, 3930.9060000000027, 4184.656000000003, 4469.718999999997, 5347.25, 3344.3439999999973, 4429.187999999995, 4227.796999999999, 5575.828000000001, 5608.531999999999, 4317.905999999999, 4599.671999999999, 3021.890999999996, 4511.811999999998, 3433.875, 3964.2339999999967, 3941.390999999996, 5516.625, 5849.985000000001, 4880.891000000003, 5331.108999999997, 4537.75, 5474.25, 7776.906000000003, 4855.311999999998, 5793.530999999999, 5803.797000000006, 5022.0790000000015, 4313.141000000003, 4364.264999999999, 3404.6250000000036, 4734.485000000001, 4093.9850000000006, 3699.7189999999973, 4383.141000000003, 4564.608999999997, 5984.406000000003, 5493.25, 6406.407000000003, 5439.436999999998, 5420.203000000001, 4913.031000000003, 17887.906000000003, 3798.2340000000004, 3077.4059999999954, 5351.843999999997, 6045.093999999997, 6493.125, 4179.406000000003, 4223.5, 2443.452999999994, 4726.156000000003, 4096.578000000001, 2544.6399999999994, 5142.844000000005, 5625.953000000001, 3160.8280000000013, 4131.860000000001, 2854.359000000004, 3984.3600000000006, 5018.656999999999, 2372.5629999999983, 2846.7970000000023, 5821.563000000002, 3148.625, 3348.469000000001, 2606.0469999999987, 2299.6719999999987, 2512.8120000000017, 3340.311999999998, 2774.9840000000004, 3834.5310000000027, 4965.905999999999, 3299.311999999998, 4749.078000000001, 3587.4069999999992, 2802.0780000000013, 3758.6089999999967, 3153.625, 3077.188000000002, 4046.7649999999994, 3950.2030000000013, 3986.7030000000013, 2225.1719999999987, 2676.2969999999987, 2955.5780000000013, 3870.9069999999992, 5539.625, 3544.186999999998, 1949.3910000000033, 1406.875, 2268.8430000000008, 3803.7809999999954, 4101.514999999999, 3004.7350000000006, 3928.7499999999964, 2312.7339999999967, 2421.8280000000013, 3213.5319999999992, 3145.984000000004, 2704.125, 3585.6410000000033, 3317.2969999999987, 3850.0780000000013, 2868.0469999999987, 2136.0, 4722.141, 4307.031000000003, 2793.4689999999973, 2909.4220000000023, 2239.125, 2487.6410000000033, 2809.8750000000036, 1541.0469999999987, 2045.594000000001, 3409.75, 2892.765999999996, 2667.25, 3802.921000000002, 1931.203999999998, 3143.359000000004, 5118.233999999997, 1615.7030000000013, 1908.061999999998, 3974.5, 2885.952999999994, 2708.5309999999954, 1668.5629999999983, 1908.2969999999987, 3079.1560000000027, 1953.9839999999967, 1107.0939999999973, 1357.640999999996, 1525.2030000000013, 2664.0469999999987, 2733.609000000004, 2146.3589999999967, 3145.3120000000017, 1674.703999999998, 2032.2969999999987, 3277.8899999999994, 1931.9219999999987, 3526.6560000000027, 2699.25, 2678.375, 2960.438000000002, 3940.561999999998, 2292.109000000004, 3295.4689999999973, 3723.0629999999946, 2153.7819999999992, 2271.578999999998, 2843.702999999994, 2210.4689999999973, 2616.688000000002, 1820.9689999999973, 2059.405999999999, 3332.5149999999994, 2741.6409999999996, 2873.0939999999973, 1882.436999999998, 4416.235000000001, 3426.4530000000013, 2350.813000000002, 2531.453999999998, 3476.094000000001, 2894.8439999999973, 1686.3430000000008, 1741.2180000000008, 2306.4840000000004, 2191.6879999999946, 2459.0780000000013, 2872.5940000000046, 7864.625, 1995.7189999999973, 2387.2029999999977, 1806.811999999998, 5047.625, 2607.5, 1842.4219999999987, 3735.140999999996, 1855.921000000002, 3410.4219999999987, 2280.875, 2331.8589999999967, 3330.0780000000013, 1681.625, 1867.1720000000023, 2159.5310000000027, 4190.719000000001, 2091.5469999999987, 5581.140999999996, 2132.4689999999973, 2873.2969999999987, 4320.016000000003, 2400.6560000000027, 5387.780999999999, 4477.328000000001, 2645.4219999999987, 2349.2969999999987, 4272.561999999998, 1604.936999999998, 1728.3129999999946, 2708.3910000000033, 2509.811999999998, 2161.7969999999987, 2421.907000000003, 3245.5160000000033, 1587.390999999996, 1776.5309999999954, 2773.015000000003, 3855.938000000002, 1548.9070000000029, 4451.578000000001, 2397.2969999999987, 2401.280999999999, 2032.7189999999973, 3402.421000000002, 2619.171000000002, 1330.7030000000013, 2052.3899999999994, 2231.75]
procedureTimesInMinutes = []
print prostate_volumes
import pylab
import matplotlib.pyplot as plt
"""
plt.figure(1)
plt.plot(listOfCaseIDs,prostate_volumes,'bo')
rect = plt.figure(1)
rect.set_facecolor('white')
plt.xlabel('case')
plt.ylabel('prostate volume in ml')
plt.show()
"""
for i in range(0,len(procedureTimesInSeconds)):
procedureTimesInMinutes.append(procedureTimesInSeconds[i]/60)
print procedureTimesInMinutes
plt.figure(2)
plt.plot(listOfCaseIDs,procedureTimesInMinutes,'bo')
rect = plt.figure(2)
rect.set_facecolor('white')
plt.xlabel('case')
plt.ylabel('procedure time in minutes')
plt.show()
"""
fig=plt.figure()
rect=fig.patch
rect.set_facecolor('white')
# ax1= fig.add_subplot(1,1,1)
x=[0,500]
# plt.plot(diceCoeffBefore,diceCoeffAfter,'ko',x,y,'b--')
plt.plot(prostate_volumes)
# plt.title('DICE Coefficients')
plt.xlabel('cases')
plt.ylabel('prostate size in mL')
#plt.axis([0,1,0,1])
plt.show()
"""