00001
00002 from rsfproj import Flow, Plot, End, Result
00003
00004 graphit = lambda title=None, min=-0.25, max=0.25: 'graph title="%(title)s" min2=%(min)s max2=%(max)s' %vars()
00005 def plot_swell( data, noise, sig , enoise, esig, residual=None):
00006
00007
00008
00009
00010 Plot( 'enoise', enoise, graphit( title="Estimated Swell Noise") )
00011 Plot( 'noise',noise, graphit( title="True Swell Noise") )
00012
00013 Plot( 'esig',esig, graphit( title="Estimated Signal" ) )
00014 Plot('sig',sig, graphit( title="True Signal" ) )
00015
00016
00017 Result('plot1',['sig','esig'], 'SideBySideAniso' )
00018 Result('plot2',['noise','enoise'], 'SideBySideAniso' )
00019
00020 if residual:
00021 Plot('residual',residual, graphit( title="Residual" ) )
00022 Result('plot3',[esig,enoise,residual],'SideBySideAniso' )
00023
00024 End()
00025