📄 spec2d_cplot.m
字号:
% 2D Amplification Ratio from SPECFEM data% H. Rendon and J.P. Ampuero - Set. 2001 xscal = 0.001 ;% scaling x-axisascal = 0.5 ;% amplitude scalingxtitle = 'Location (km)';ytitle = 'Frequency (Hz)';plottitle = 'AR at Los Palos Grandes, X component, P wave, i=60 N';tsize = 18; % Font size for titles and axis labelsdisp('Plots spectra map');datapath = input('Enter data path : ','s'); sourcepath = pwd;cd(datapath); load specf.dat; load xsismos.dat; load specx.dat; cd(sourcepath);specx = specx*ascal; xsismos = xsismos*xscal ;nf = size(specf,1);f1 = 5 ; % first frequency to be plottedf2 = nf ; % last frequency to be plottedcontourf(xsismos(:,1),specf(f1:f2),specx(:,f1:f2)'); colorbar; xlabel(xtitle,'FontSize',tsize);ylabel(ytitle,'FontSize',tsize);title(plottitle,'FontSize',tsize);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -