EZvTrendPrint.m 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. %EZvFigPrint
  2. global ghandles
  3. global Exp
  4. try
  5. lnwidth=str2num(Exp(4).plotPars{1})
  6. axisFontSz=str2num(Exp(4).plotPars{2})
  7. legFontSz=str2num(Exp(4).plotPars{3})
  8. markerSz=str2num(Exp(4).plotPars{4})
  9. catch
  10. lnwidth=4;
  11. axisFontSz=36;
  12. legFontSz=10;
  13. markerSz=5;
  14. end
  15. if get(ghandles.printOL1,'Value')==1,zone=1; end
  16. if get(ghandles.printOL2,'Value')==1,zone=2; end
  17. if get(ghandles.printOL3,'Value')==1,zone=3; end
  18. clear legName tmp
  19. figure
  20. set(gcf,'OuterPosition',(get(0,'screensize')))
  21. hn=0;
  22. if isequal(get(Exp(zone).hOL(1),'Visible'),'on')
  23. disphOLX(1)={get(Exp(zone).hOL(1),'XData')}
  24. disphOLY(1)={get(Exp(zone).hOL(1),'YData')}
  25. tmp(1)=strrep(Exp(zone).hOLname(1),'_','-')
  26. try
  27. disphOLbX(1)={get(Exp(zone).hOLb(1),'XData')}
  28. disphOLbY(1)={get(Exp(zone).hOLb(1),'YData')}
  29. catch end
  30. hn=hn+1
  31. notDup=1;
  32. end
  33. notDup=0;
  34. for hN=2:length(Exp(zone).hOL)
  35. % Bounce-dupicate data removal
  36. for j=1:(hN-1)
  37. if isequal(Exp(zone).hOLname(hN), Exp(zone).hOLname(j)) %&& ...
  38. % isequal(get(Exp(zone).hOL(hN),'Visible'),'on')
  39. notDup=0;
  40. break
  41. else
  42. notDup=1;
  43. end
  44. end
  45. if notDup==1
  46. if isequal(get(Exp(zone).hOL(hN),'Visible'),'on')
  47. hn=hn+1
  48. try
  49. disphOLX(hn)={get(Exp(zone).hOL(hN),'XData')};
  50. disphOLY(hn)={get(Exp(zone).hOL(hN),'YData')};
  51. tmp(hn)=strrep(Exp(zone).hOLname(hN),'_','-')
  52. try
  53. disphOLbX(hn)={get(Exp(zone).hOLb(hN),'XData')};
  54. disphOLbY(hn)={get(Exp(zone).hOLb(hN),'YData')};
  55. catch
  56. end
  57. tmp(hn)=strrep(Exp(zone).hOLname(hN),'_','-')
  58. catch ME
  59. disp(ME)
  60. display('error leading to line 59 catch')
  61. end
  62. end
  63. end
  64. end
  65. for i=1:hn
  66. if semiLog==0
  67. hprint=plot(cell2mat(disphOLX(i)),cell2mat(disphOLY(i)))
  68. set(hprint,'linewidth',lnwidth) %0.5 then 1.5 now 6
  69. set(gca,'fontsize',axisFontSz) % 8 to 15 to 21
  70. linecolor(i)={get(hprint,'color')};
  71. else
  72. hprint=semilogy(cell2mat(disphOLX(i)),cell2mat(disphOLY(i)))
  73. set(hprint,'linewidth',lnwidth) %0.5 then 1.5 now 4.0
  74. set(gca,'fontsize',axisFontSz) % 8 to 15 to 21
  75. linecolor(i)={get(hprint,'color')};
  76. end
  77. hold all
  78. end
  79. if Exp(zone).CompositPlot~=1 % Standard plot, Not a Composite Plot
  80. legName=tmp
  81. hleg=legend((legName),'location','NEO')
  82. set(hleg,'fontsize',legFontSz)
  83. try
  84. for i=1:hn
  85. if semiLog==0
  86. hprint=plot(cell2mat(disphOLbX(i)),cell2mat(disphOLbY(i)),'marker','+','markerEdgeColor',cell2mat(linecolor(i)),'markerSize',markerSz, 'linestyle','none')
  87. else
  88. hprint=semilogy(cell2mat(disphOLbX(i)),cell2mat(disphOLbY(i)),'marker','+','markerEdgeColor',cell2mat(linecolor(i)),'markerSize',markerSz, 'linestyle','none')
  89. end
  90. end
  91. catch
  92. end
  93. hold off
  94. % End of Standard Overlay Plot
  95. else %if Composite Plot
  96. for hcN=1:(Exp(zone).cTraceN -1)
  97. disphOLX(hcN)={get(Exp(zone).hCmean(hcN),'XData')};
  98. disphOLY(hcN)={get(Exp(zone).hCmean(hcN),'YData')};
  99. disphOLbX(hcN)={get(Exp(zone).hBound1(hcN),'XData')};
  100. disphOLbY(hcN)={get(Exp(zone).hBound1(hcN),'YData')};
  101. disphOLcX(hcN)={get(Exp(zone).hBound2(hcN),'XData')};
  102. disphOLcY(hcN)={get(Exp(zone).hBound2(hcN),'YData')};
  103. tmp(hcN)=(Exp(zone).cName(hcN))
  104. if semiLog==0
  105. hprint=plot(cell2mat(disphOLX(hcN)),cell2mat(disphOLY(hcN)))
  106. set(hprint,'linewidth',lnwidth) %0.5 then 1.5 now 6
  107. set(gca,'fontsize',axisFontSz) % 8 to 15 to 21
  108. linecolor(hcN)={get(hprint,'color')};
  109. else
  110. hprint=semilogy(cell2mat(disphOLX(hcN)),cell2mat(disphOLY(hcN)))
  111. set(hprint,'linewidth',lnwidth) %0.5 then 1.5 now 4.0
  112. set(gca,'fontsize',axisFontSz) % 8 to 15 to 21
  113. linecolor(hcN)={get(hprint,'color')};
  114. end
  115. hold all
  116. legName=tmp
  117. hleg=legend((legName),'location','NEO')
  118. set(hleg,'fontsize',legFontSz)
  119. %{
  120. for i=1:hn
  121. hprint=plot(cell2mat(disphOLbX(i)),cell2mat(disphOLbY(i)),'marker','+','markerEdgeColor',cell2mat(linecolor(i)),'markerSize',markerSz, 'linestyle','none')
  122. end
  123. %}
  124. end
  125. for i=1:(Exp(zone).cTraceN -1)
  126. hBprint=plot(cell2mat(disphOLbX(i)),cell2mat(disphOLbY(i)))
  127. set(hBprint,'linewidth',.5) %lnwidth) %0.5 then 1.5 now 6
  128. set(hBprint,'color',linecolor{i})
  129. hCprint=plot(cell2mat(disphOLcX(i)),cell2mat(disphOLcY(i)))
  130. set(hCprint,'linewidth',0.5) %lnwidth) %0.5 then 1.5 now 6
  131. set(hBprint,'color',linecolor{i})
  132. end
  133. hold off
  134. end