Hello, i have some seismic survey data (7 channels) and tried to plot them all in one figure without axes. So far so good but I want all 7 subplots to have one common x-axis and one common y axis. Any ideas?
My code is the following
clear allload('G1.txt')load('G2.txt')load('G3.txt')load('G4.txt')load('G5.txt')load('G6.txt')load('G7.txt')L=length(G1);Fs=2048;t=(L/1000) - 0.0001;tvect = (0:0.001:t)';figuresubplot (1,7,1)plot (G1,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,2)plot (G2,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,3)plot (G3,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,4)plot (G4,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,5)plot (G5,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,6)plot (G6,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')subplot (1,7,7)plot (G7,tvect,'k')hold onylim ([0 2])haxes = gca;axis offset(gca,'Ydir','reverse')
Best Answer