On Wed, Sep 16, 2009 at 6:56 PM, S.Selvam <s.selvams...@gmail.com> 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
>
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()
--
Yours,
S.Selvam
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users