Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168694
Image: ubuntu2004
import numpy import pylab t = numpy.arange(0.0, 1.0, 0.01) s = numpy.cos(2*2*numpy.pi*t) z = numpy.sin(2*2*numpy.pi*t) pylab.plot(t, s, 'ro-', t, z, 'bx-') pylab.xlabel('time (s)') pylab.ylabel('voltage (mV)') pylab.title('About as simple as it gets, folks') pylab.grid(True) pylab.legend(('sin','cos')) pylab.savefig('simple_plot') #pylab.show()