tumorfigure.asv 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. function humanfigure(x1,y1,y2,y3)
  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,[74 83 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. 'LineStyle','-.',...
  19. 'Parent',axes1,...
  20. 'DisplayName','tumor uniform');
  21. %% Create plot
  22. plot2 = plot(...
  23. x1,y2,...
  24. 'Color',[0,0,0],...
  25. 'LineWidth',3,...
  26. 'LineStyle','--',...
  27. 'Parent',axes1,...
  28. 'DisplayName','tumor linear');
  29. %% Create plot
  30. plot3 = plot(...
  31. x1,y3,...
  32. 'Color',[0,0,0],...
  33. 'LineWidth',3,...
  34. 'Parent',axes1,...
  35. 'DisplayName','tumor square root');
  36. %% Create legend
  37. legend1 = legend(axes1,{'2.45 cm Jaw Width','0.62','tumor square root','tumor quadratic'},...
  38. 'FontName','Arial',...
  39. 'FontSize',20,...
  40. 'Location','NorthEast');
  41. %'tumor DVH','prescription DVH',
  42. % %'normal 2.45 cm','normal 0.625 cm',...
  43. % 'larynx 2.45 cm', 'larynx 0.625 cm',...
  44. % 'right parotid 2.45 cm','right parotid 0.625 cm',...
  45. % 'left parotid 2.45 cm','left parotid 0.625cm',...
  46. % 'cord 2.45 cm','cord 0.625 cm'},...