-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVisualize_SEGY_MATLAB
19 lines (17 loc) · 3.85 KB
/
Visualize_SEGY_MATLAB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
axes1 = axes('Parent',figure1);
hold(axes1,'on');
% Create image
image(x,y,cdata1,'Parent',axes1,'CDataMapping','scaled');
% Uncomment the following line to preserve the X-limits of the axes
% xlim(axes1,[-5.00001666672222e-05 30.0000500001667]);
% Uncomment the following line to preserve the Y-limits of the axes
% ylim(axes1,[-588.178414096916 5111.17841409692]);
box(axes1,'on');
axis(axes1,'ij');
% Set the remaining axes properties
% set(axes1,'CLim',[-0.45 0.45],'Colormap',...
set(axes1,'CLim',[low_lim up_lim],'Colormap',...
[0 0 0;0.0209993682801723 0.0209993682801723 0.0209993682801723;0.0419987365603447 0.0419987365603447 0.0419987365603447;0.0629981011152267 0.0629981011152267 0.0629981011152267;0.0839974731206894 0.0839974731206894 0.0839974731206894;0.104996837675571 0.104996837675571 0.104996837675571;0.125996202230453 0.125996202230453 0.125996202230453;0.146995574235916 0.146995574235916 0.146995574235916;0.167994946241379 0.167994946241379 0.167994946241379;0.188994318246841 0.188994318246841 0.188994318246841;0.209993675351143 0.209993675351143 0.209993675351143;0.230993047356606 0.230993047356606 0.230993047356606;0.251992404460907 0.251992404460907 0.251992404460907;0.27299177646637 0.27299177646637 0.27299177646637;0.293991148471832 0.293991148471832 0.293991148471832;0.314990520477295 0.314990520477295 0.314990520477295;0.335989892482758 0.335989892482758 0.335989892482758;0.35698926448822 0.35698926448822 0.35698926448822;0.377988636493683 0.377988636493683 0.377988636493683;0.398988008499146 0.398988008499146 0.398988008499146;0.419987350702286 0.419987350702286 0.419987350702286;0.440986722707748 0.440986722707748 0.440986722707748;0.461986094713211 0.461986094713211 0.461986094713211;0.482985466718674 0.482985466718674 0.482985466718674;0.503984808921814 0.503984808921814 0.503984808921814;0.524984180927277 0.524984180927277 0.524984180927277;0.545983552932739 0.545983552932739 0.545983552932739;0.566982924938202 0.566982924938202 0.566982924938202;0.587982296943665 0.587982296943665 0.587982296943665;0.608981668949127 0.608981668949127 0.608981668949127;0.62998104095459 0.62998104095459 0.62998104095459;0.650980412960052 0.650980412960052 0.650980412960052;0.776470601558685 0.776470601558685 0.776470601558685;0.901960790157318 0.901960790157318 0.901960790157318;0.905228734016418 0.905228734016418 0.905228734016418;0.908496737480164 0.908496737480164 0.908496737480164;0.911764740943909 0.911764740943909 0.911764740943909;0.915032684803009 0.915032684803009 0.915032684803009;0.918300628662109 0.918300628662109 0.918300628662109;0.921568632125854 0.921568632125854 0.921568632125854;0.9248366355896 0.9248366355896 0.9248366355896;0.9281045794487 0.9281045794487 0.9281045794487;0.9313725233078 0.9313725233078 0.9313725233078;0.934640526771545 0.934640526771545 0.934640526771545;0.937908530235291 0.937908530235291 0.937908530235291;0.941176474094391 0.941176474094391 0.941176474094391;0.944444417953491 0.944444417953491 0.944444417953491;0.947712421417236 0.947712421417236 0.947712421417236;0.950980424880981 0.950980424880981 0.950980424880981;0.954248368740082 0.954248368740082 0.954248368740082;0.957516312599182 0.957516312599182 0.957516312599182;0.960784316062927 0.960784316062927 0.960784316062927;0.964052319526672 0.964052319526672 0.964052319526672;0.967320263385773 0.967320263385773 0.967320263385773;0.970588207244873 0.970588207244873 0.970588207244873;0.973856210708618 0.973856210708618 0.973856210708618;0.977124214172363 0.977124214172363 0.977124214172363;0.980392158031464 0.980392158031464 0.980392158031464;0.983660101890564 0.983660101890564 0.983660101890564;0.986928105354309 0.986928105354309 0.986928105354309;0.990196108818054 0.990196108818054 0.990196108818054;0.993464052677155 0.993464052677155 0.993464052677155;0.996731996536255 0.996731996536255 0.996731996536255;1 1 1],...
'Layer','top');
% Create colorbar
colorbar(axes1);