Esempio n. 1
0
from thinkdsp import CosSignal, SinSignal, decorate
import matplotlib.pyplot as plt

cosine_signal = CosSignal(freq=440, amp=1.0, offset=0)

sine_signal = SinSignal(freq=880, amp=0.5, offset=0)

cosine_signal.plot()
decorate(xlabel='Time (s)')

# figure, (axes1, axes2) = plt.subplots(nrows=2)

# axes1.plot(cosine_signal)
# axes1.set_xlabel('Time (s)')

plt.show()
Esempio n. 2
0
#import sys
#sys.path.insert(1,'dsp-modulo')
from thinkdsp import SinSignal
from thinkdsp import CosSignal
from thinkdsp import decorate

#modulo para mostrar las graficas
import matplotlib.pyplot as plt

#crear señal senoidal

seno = SinSignal(freq=200, amp=0.7, offset=0)
coseno = CosSignal(freq=800, amp=1.1, offset=0)

#creamos grafica y asignamos propiedades
seno.plot()
coseno.plot()

decorate(xlabel='Tiempo (s)')
decorate(ylabel='Amplitud')

plt.show()
Esempio n. 3
0
from thinkdsp import CosSignal, SinSignal
from thinkdsp import decorate

cos_sig = CosSignal(freq=440, amp=1, offset=0)
sin_sig = SinSignal(freq=880, amp=0.5, offset=0)

cos_sig.plot()
decorate(xlabel='Time (s)')