Tutoriales de matplotlib con python. Parte 4
Posted on Tue 16 June 2009 in Tutorial Python • Tagged with Linux, Python, Matplotlib • 1 min read
El siguiente ejemplo se graficará una curva senosoidal definiendo un rango de tiempo.
>>> import numpy
>>> import pylab
>>> t = numpy.arange(0.0, 1.0+0.01, 0.01)
>>> s = numpy.cos(2*2*numpy.pi*t)
>>> pylab.plot(t, s)
[]
>>> pylab.xlabel('tiempo (seg)')
>>> pylab.ylabel('Tension (mV)')
>>> pylab.title …
Continue reading