normalfigure.asv 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. function normalfigure(x1, y1, y2, y3, y4, y5, y6,y7,)
  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 50 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','larynx 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','larynx 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','larynx quadratic');
  58. % %% Create plot
  59. % plot7 = plot(...
  60. % x1,y7,...
  61. % 'Color',[0 0 1],...
  62. % 'LineWidth',3,...
  63. % 'Parent',axes1,...
  64. % 'DisplayName','right parotid linear');
  65. %
  66. % %% Create plot
  67. % plot8 = plot(...
  68. % x1,y8,...
  69. % 'Color',[0 0.5 0],...
  70. % 'LineWidth',3,...
  71. % 'Parent',axes1,...
  72. % 'DisplayName','right parotid square root');
  73. %
  74. % %% Create plot
  75. % plot9 = plot(...
  76. % x1,y9,...
  77. % 'Color',[1 0 0],...
  78. % 'LineWidth',3,...
  79. % 'Parent',axes1,...
  80. % 'DisplayName','right parotid quadratic');
  81. %
  82. % %% Create plot
  83. % plot10 = plot(...
  84. % x1,y10,...
  85. % 'Color',[0.75 0 0.75],...
  86. % 'LineWidth',3,...
  87. % 'Parent',axes1,...
  88. % 'DisplayName','right parotid Gompertz');
  89. %
  90. % %% Create plot
  91. % plot11 = plot(...
  92. % x1,y11,...
  93. % 'Color',[0 0 0],...
  94. % 'LineStyle','--',...
  95. % 'LineWidth',3,...
  96. % 'Parent',axes1,...
  97. % 'DisplayName','cord uniform');
  98. %
  99. % %% Create plot
  100. % plot12 = plot(...
  101. % x1,y12,...
  102. % 'Color',[0 0 1],...
  103. % 'Parent',axes1,...
  104. % 'LineStyle','--',...
  105. % 'LineWidth',3,...
  106. % 'DisplayName','cord linear');
  107. %
  108. % %% Create plot
  109. % plot13 = plot(...
  110. % x1,y13,...
  111. % 'Color',[0 0.5 0],...
  112. % 'LineStyle','--',...
  113. % 'LineWidth',3,...
  114. % 'Parent',axes1,...
  115. % 'DisplayName','cord square root');
  116. %
  117. % %% Create plot
  118. % plot14 = plot(...
  119. % x1,y14,...
  120. % 'Color',[1 0 0],...
  121. % 'LineStyle','--',...
  122. % 'Parent',axes1,...
  123. % 'LineWidth',3,...
  124. % 'DisplayName','cord quadratic');
  125. %
  126. % %% Create plot
  127. % plot15 = plot(...
  128. % x1,y15,...
  129. % 'Color',[0.75 0 0.75],...
  130. % 'LineStyle','--',...
  131. % 'Parent',axes1,...
  132. % 'LineWidth',3,...
  133. % 'DisplayName','cord Gompertz');
  134. %% Create legend
  135. legend1 = legend(axes1,{'right parotid linear','right parotid square root','right parotid quadratic',...
  136. 'cord linear','cord square root','cord quadratic'},...
  137. 'FontName','Arial',...
  138. 'FontSize',20,...
  139. 'Location','NorthEast');