tumorSigFigure.asv 1.9 KB

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