FBsignal

class pylayers.signal.bsignal.FBsignal(x=array([], dtype=float64), y=array([], dtype=float64), label=[])[source]

Bases: pylayers.signal.bsignal.Bsignal

FBsignal : Base signal in Frequency domain

plot : plot modulus and phase plotri : plot real part and imaginary part plotdB : plot modulus in dB

Methods Summary

plot(**kwargs)

plot FBsignal

plotdB([mask, n, phase])

usage : plotdB()

plotri([nb])

plot real and imaginary part

stem([color])

stem plot

Methods Documentation

plot(**kwargs)[source]

plot FBsignal

phaseboolean

default True

dBboolean

default True

iy : index of y value to be displayed typ : string

[‘l10’,’m,’l20’,’d’,’r’,’du’,’ru’]

xlabels ylabels

>>> from pylayers.signal.bsignal import *
>>> from numpy import *
>>> from scipy import *
>>> S = FBsignal()
>>> S.x = arange(100)
>>> S.y = cos(2*pi*S.x)+1j*sin(3*pi*S.x+pi/3)
>>> fig,ax = S.plot()
>>> plt.show()

Bsignal.plot pylayers.util.plotutil.mulcplot

plotdB(mask=False, n=2, phase=True)[source]

usage : plotdB()

mask : n : phase :

plotri(nb=-1)[source]

plot real and imaginary part

nb : int

stem(color='b-')[source]

stem plot

color : string