humanfigure.asv 3.5 KB

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