tumorSigFigure.m 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. function tumorSigFigure(x1,y1,y2,y3,y4,y5,y6,y7,y8,y9)
  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 2 0 100]);
  8. title('Sigmoid Center = 0.8','FontSize',20,'FontWeight','Bold')
  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 sigmoid center = 0.1');
  21. %% Create plot
  22. plot2 = plot(...
  23. x1,y2,...
  24. 'Color',[0,0,1],...
  25. 'LineWidth',3,...
  26. 'Parent',axes1,...
  27. 'DisplayName','tumor sigmoid center = 0.2');
  28. %% Create plot
  29. plot3 = plot(...
  30. x1,y3,...
  31. 'Color',[0,0.5,0],...
  32. 'LineWidth',3,...
  33. 'Parent',axes1,...
  34. 'DisplayName','tumor sigmoid center = 0.3');
  35. plot4 = plot(...
  36. x1,y4,...
  37. 'Color',[1 0 0],...
  38. 'LineWidth',3,...
  39. 'Parent',axes1,...
  40. 'DisplayName','tumor sigmoid center = 0.4');
  41. plot5 = plot(...
  42. x1,y5,...
  43. 'Color',[0.75 0 0.75],...
  44. 'LineWidth',3,...
  45. 'Parent',axes1,...
  46. 'DisplayName','tumor sigmoid center = 0.5');
  47. plot6 = plot(...
  48. x1,y6,...
  49. 'Color',[0.1 0.25 0.5],...
  50. 'LineWidth',3,...
  51. 'Parent',axes1,...
  52. 'DisplayName','tumor sigmoid center = 0.6');
  53. plot7 = plot(...
  54. x1,y7,...
  55. 'Color',[0.5 0.8 0],...
  56. 'LineWidth',3,...
  57. 'Parent',axes1,...
  58. 'DisplayName','tumor sigmoid center = 0.7');
  59. plot8 = plot(...
  60. x1,y8,...
  61. 'Color',[0.8 0.5 0],...
  62. 'LineWidth',3,...
  63. 'Parent',axes1,...
  64. 'DisplayName','tumor sigmoid center = 0.8');
  65. plot9 = plot(...
  66. x1,y9,...
  67. 'Color',[0.8 0.5 0],...
  68. 'LineWidth',3,...
  69. 'Parent',axes1,...
  70. 'DisplayName','tumor sigmoid center = 0.9');
  71. %% Create legend
  72. legend1 = legend(axes1,{'center = 0.1','center = 0.2','center = 0.3','center = 0.4','center = 0.5','center = 0.6','center = 0.7','center = 0.8','center = 0.9'},...
  73. 'FontName','Arial',...
  74. 'FontSize',20,...
  75. 'Location','NorthEast');