Hi all,
Few days back i came to know about python-matplotlib module when looking at segypy(seismic data processsing) python module.It uses pylab.plot(x,y…) to plot traces.
But the issue is it plots the complete dataset in a single view.I would like to have plots with decent intervel and have scorllbars.Is there anything do be done with our matpplotlib functions ?
If it is irrelevant to matplotlib (rather something to be done with segypy trace processing ) ,kindly ignore this mail / guide me in right way.
···
–
Yours,
S.Selvam
this is how the code looks,(a function in segypy module)
def wiggle(Data,SH,skipt=1,maxval=8,lwidth=.1):
“”"
wiggle(Data,SH)
“”"
import pylab
print "Hello"
t = range(SH['ns'])
for i in range(0,SH['ntraces'],skipt):
trace=Data[:,i]
trace[0]=0
trace[SH['ns']-1]=0
pylab.plot(i+trace/maxval,t,color='red',linewidth=1)
for a in range(len(trace)):
if (trace[a]<0):
trace[a]=0;
pylab.fill(i+Data[:,i]/maxval,t,'k',linewidth=0)
pylab.title(SH['filename'])
pylab.grid(True)
pylab.show()
···
On Wed, Sep 16, 2009 at 6:56 PM, S.Selvam <s.selvamsiva@…287…> wrote:
Hi all,
Few days back i came to know about python-matplotlib module when looking at segypy(seismic data processsing) python module.It uses pylab.plot(x,y…) to plot traces.
But the issue is it plots the complete dataset in a single view.I would like to have plots with decent intervel and have scorllbars.Is there anything do be done with our matpplotlib functions ?
If it is irrelevant to matplotlib (rather something to be done with segypy trace processing ) ,kindly ignore this mail / guide me in right way.
–
Yours,
S.Selvam
–
Yours,
S.Selvam