humanfigure.m 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. function humanfigure(x1,y1,y2)
  2. %y1, y2, y5, y6, y7, y8, y9, y10, y11, y12, y13, y14
  3. %% Create figure
  4. figure1 = figure;
  5. %% Create axes
  6. axes1 = axes('FontSize',20,'XGrid','on','YGrid','on','XMinorTick','on','YMinorTick','on',...
  7. 'Box','on','Parent',figure1);
  8. axis(axes1,[70 100 0 100]);
  9. xlabel(axes1,'Dose [Gy]','FontWeight','Bold','FontName','Arial',...
  10. 'FontSize',20);
  11. ylabel(axes1,'Percent Volume','FontWeight','Bold','FontName','Arial',...
  12. 'FontSize',20);
  13. hold(axes1,'all');
  14. %% Create plot
  15. plot1 = plot(...
  16. x1,y1,...
  17. 'Color',[0,0,0],...
  18. 'LineStyle','--',...
  19. 'LineWidth',3,...
  20. 'Parent',axes1,...
  21. 'DisplayName','tumor 2.45 cm EDVH');
  22. %% Create plot
  23. plot2 = plot(...
  24. x1,y2,...
  25. 'Color',[0,0,0],...
  26. 'LineWidth',3,...
  27. 'Parent',axes1,...
  28. 'DisplayName','tumor 0.625cm EDVH');
  29. %
  30. % %% Create plot
  31. % plot3 = plot(...
  32. % x1,y3,...
  33. % 'Color',[0.5,0.5,0.5],...
  34. % 'LineWidth',3,...
  35. % 'Parent',axes1,...
  36. % 'DisplayName','prescription DVH');
  37. % %% Create plot
  38. % plot4 = plot(...
  39. % x1,y4,...
  40. % 'Color',[0.75,0,0.75],...
  41. % 'LineStyle','--',...
  42. % 'LineWidth',3,...
  43. % 'Parent',axes1,...
  44. % 'DisplayName','tumor 2.45 cm eDVH');
  45. % plot5 = plot(...
  46. % x1,y5,...
  47. % 'Color',[0.75 0 0.75],...
  48. % 'LineWidth',3,...
  49. % 'Parent',axes1,...
  50. % 'DisplayName','tumor eDVH');
  51. %
  52. % %% Create plot
  53. % plot6 = plot(...
  54. % x1,y6,...
  55. % 'Color',[0.25 0.25 0.25],...
  56. % 'LineWidth',3,...
  57. % 'Parent',axes1,...
  58. % 'DisplayName','prescription eDVH');
  59. %
  60. % %% Create plot
  61. % plot6 = plot(...
  62. % x1,y6,...
  63. % 'Color',[1 0 0],...
  64. % 'LineWidth',3,...
  65. % 'Parent',axes1,...
  66. % 'DisplayName','normal 0.625 cm');
  67. %
  68. % %% Create plot
  69. % plot7 = plot(...
  70. % x1,y7,...
  71. % 'Color',[0.749 0.749 0],...
  72. % 'LineStyle','--',...
  73. % 'LineWidth',3,...
  74. % 'Parent',axes1,...
  75. % 'DisplayName','larynx 2.45 cm');
  76. %
  77. % %% Create plot
  78. % plot8 = plot(...
  79. % x1,y8,...
  80. % 'Color',[0.749 0.749 0],...
  81. % 'LineWidth',3,...
  82. % 'Parent',axes1,...
  83. % 'DisplayName','larynx 0.625 cm');
  84. %
  85. % %% Create plot
  86. % plot9 = plot(...
  87. % x1,y9,...
  88. % 'Color',[0.749 0 0.749],...
  89. % 'LineStyle','--',...
  90. % 'LineWidth',3,...
  91. % 'Parent',axes1,...
  92. % 'DisplayName','right parotid 2.45 cm');
  93. %
  94. % %% Create plot
  95. % plot10 = plot(...
  96. % x1,y10,...
  97. % 'Color',[0.749 0 0.749],...
  98. % 'LineWidth',3,...
  99. % 'Parent',axes1,...
  100. % 'DisplayName','right parotid 0.625 cm');
  101. %
  102. % %% Create plot
  103. % plot11 = plot(...
  104. % x1,y11,...
  105. % 'Color',[0.8549 0.702 1],...
  106. % 'LineStyle','--',...
  107. % 'LineWidth',3,...
  108. % 'Parent',axes1,...
  109. % 'DisplayName','left parotid 2.45 cm');
  110. %
  111. % %% Create plot
  112. % plot12 = plot(...
  113. % x1,y12,...
  114. % 'Color',[0.8549 0.702 1],...
  115. % 'Parent',axes1,...
  116. % 'LineWidth',3,...
  117. % 'DisplayName','left parotid 0.625 cm');
  118. %
  119. % %% Create plot
  120. % plot13 = plot(...
  121. % x1,y13,...
  122. % 'Color',[0 0.498 0],...
  123. % 'LineStyle','--',...
  124. % 'LineWidth',3,...
  125. % 'Parent',axes1,...
  126. % 'DisplayName','cord 2.45 cm');
  127. %
  128. % %% Create plot
  129. % plot14 = plot(...
  130. % x1,y14,...
  131. % 'Color',[0 0.498 0],...
  132. % 'Parent',axes1,...
  133. % 'LineWidth',3,...
  134. % 'DisplayName','cord 0.625 cm');
  135. %% Create legend
  136. legend1 = legend(axes1,{'tumor 2.45 cm EDVH','tumor 0.625 cm eDVH'},...
  137. 'FontName','Arial',...
  138. 'FontSize',20,...
  139. 'Location','NorthEast');
  140. % %'normal 2.45 cm','normal 0.625 cm',...
  141. % 'larynx 2.45 cm', 'larynx 0.625 cm',...
  142. % 'right parotid 2.45 cm','right parotid 0.625 cm',...
  143. % 'left parotid 2.45 cm','left parotid 0.625cm',...
  144. % 'cord 2.45 cm','cord 0.625 cm'},...