<div dir="ltr"><div dir="ltr">Hello to all,</div><div dir="ltr"><br></div><div dir="ltr">The below mentioned code will display waveform.</div><div dir="ltr">Waveform is attached.</div><div>All waves are starting at 0. Each wave form should be shifted from zero. So that i can visualize each wave form.</div><div>Pl. help me.</div><div><br></div><div>Thanks.</div><div>Mohamed aliĀ </div><div dir="ltr"><br><div>Code :</div><div><pre style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">import </span>obspy<br><span style="color:rgb(0,0,128);font-weight:bold">from </span>obspy.io.segy.core <span style="color:rgb(0,0,128);font-weight:bold">import </span>_read_segy<br><span style="color:rgb(0,0,128);font-weight:bold">import </span>pandas <span style="color:rgb(0,0,128);font-weight:bold">as </span>pt<br><br><span style="color:rgb(0,0,128);font-weight:bold">import </span>numpy <span style="color:rgb(0,0,128);font-weight:bold">as </span>np<br><span style="color:rgb(0,0,128);font-weight:bold">import </span>matplotlib.pyplot <span style="color:rgb(0,0,128);font-weight:bold">as </span>plt<br><br>st = obspy.read(<span style="color:rgb(0,128,128);font-weight:bold">"Filename.segy"</span>) # this file is having                                  # 10 traces(waveform)<br>length=<span style="color:rgb(0,0,128)">len</span>(st)<br><span style="color:rgb(0,0,128);font-weight:bold">for </span>i <span style="color:rgb(0,0,128);font-weight:bold">in </span><span style="color:rgb(0,0,128)">range</span>(<span style="color:rgb(0,0,255)">0</span>,length):<br>    x= st[i].data<br>    y=st[i].times()<br>    fig =plt.plot(x,y)<br>    <br>plt.suptitle(<span style="color:rgb(0,128,128);font-weight:bold">'vsp wave form'</span>, <span style="color:rgb(102,0,153)">fontsize</span>=<span style="color:rgb(0,0,255)">14</span>, <span style="color:rgb(102,0,153)">fontweight</span>=<span style="color:rgb(0,128,128);font-weight:bold">'bold'</span>)<br>plt.xlabel(<span style="color:rgb(0,128,128);font-weight:bold">"time in seconds"</span>)<br>plt.ylabel(<span style="color:rgb(0,128,128);font-weight:bold">"amplitude"</span>)<br><br>plt.show()</pre></div></div></div>