tumorfigure.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. function humanfigure(x1,y1,y2,y3,y4)
  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. 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 uniform');
  20. %% Create plot
  21. plot2 = plot(...
  22. x1,y2,...
  23. 'Color',[0 0 0],...
  24. 'LineWidth',3,...
  25. 'LineStyle','--',...
  26. 'Parent',axes1,...
  27. 'DisplayName','tumor linear');
  28. %% Create plot
  29. plot3 = plot(...
  30. x1,y3,...
  31. 'Color',[0 0 0],...
  32. 'LineWidth',3,...
  33. 'LineStyle','-.',...
  34. 'Parent',axes1,...
  35. 'DisplayName','tumor square root');
  36. plot4 = plot(...
  37. x1,y4,...
  38. 'Color',[0 0 0],...
  39. 'LineWidth',3,...
  40. 'LineStyle','.',...
  41. 'Parent',axes1);
  42. %% Create legend
  43. legend1 = legend(axes1,{'y_beam = 2.450 cm','y_beam = 1.000 cm','y_beam = 0.625 cm','y_beam = 0.250 cm'},...
  44. 'FontName','Arial',...
  45. 'FontSize',20,...
  46. 'Location','NorthEast');