normalfigure.m 3.3 KB

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