plotQVH.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. function plotQVH(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,[0 2 0 100]);
  8. title('Parameter X','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','Parameter = X');
  21. plot2 = plot(...
  22. x1,y2,...
  23. 'Color',[0,0,0],...
  24. 'LineWidth',3,...
  25. 'LineStyle','--',...
  26. 'Parent',axes1,...
  27. 'DisplayName','Parameter = X');
  28. plot3 = plot(...
  29. x1,y3,...
  30. 'Color',[0,0,0],...
  31. 'LineWidth',3,...
  32. 'LineStyle','-.',...
  33. 'Parent',axes1,...
  34. 'DisplayName','Parameters = X');
  35. %% Create legend
  36. legend1 = legend(axes1,{'parameter1','parameter2','parameter3'},...
  37. 'FontName','Arial',...
  38. 'FontSize',20,...
  39. 'Location','NorthEast');