Changeset 492 in ETALON for CLIO


Ignore:
Timestamp:
Apr 18, 2016, 2:51:08 PM (8 years ago)
Author:
hodnevuc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLIO/CTR+gfw/CTR.m

    r465 r492  
    2424pulse_len_ps=2.5;%Nominal bunch duration (FWHM), ps
    2525gam=100;%relativistic gamma
    26 
     26basefig=0;%base number of figures
     27icolor='r';%color of lines on plot
    2728if (~isempty(var))
    2829disp(var);
     
    9192E_total_1=sum(CTR_spec_N(imin:end))*(omega(2)-omega(1));
    9293if PlotFunc(1)==1
    93 figure(10)
    94 loglog(3e+8./nu*1e+3,FFT_spec_om,'k','linew',2)
     94figure(basefig+1)
     95loglog(3e+8./nu*1e+3,FFT_spec_om,icolor,'linew',2)
    9596hold on
    9697% loglog(3e+8./(nu2(1:round(length(nu))))*1e+3,FFT_spec_om,'r','linew',2)
     
    106107
    107108if PlotFunc(2)==1
    108 figure(20)
    109 loglog(c./nu*1e+3,CTR_spec_1*1e+18,'r','linew',2)
     109figure(basefig+2)
     110loglog(c./nu*1e+3,CTR_spec_1*1e+18,icolor,'linew',2)
    110111hold on
    111112grid on
     
    117118
    118119if PlotFunc(3)==1
    119 figure(30)
    120 semilogy(c./nu*1e+3,CTR_spec_N*1e+18,'r','linew',2)
     120figure(basefig+3)
     121semilogy(c./nu*1e+3,CTR_spec_N*1e+18,icolor,'linew',2)
    121122set(gca,'fontsize',16)
    122123ylabel('dI/d\omega, [\muJ/THz]')
     
    134135
    135136if PlotFunc(4)==1
    136 figure(40)
    137 plot(time*1e+3,Profile./max(Profile),'r','linew',2)
     137figure(basefig+4)
     138plot(time*1e+3,Profile./max(Profile),icolor,'linew',2)
    138139set(gca,'fontsize',16)
    139140title(['Profile, fwhm=' num2str(pulse_len_ps) ' ps'])
     
    146147
    147148if PlotFunc(5)==1
    148 figure(50)
     149figure(basefig+5)
    149150[h h]=contourf(c./nu*1e+3,Theta*1e+3,d2Udisk.*1e+18,40);
    150151 set(h,'LineStyle','none');
Note: See TracChangeset for help on using the changeset viewer.