Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168721
Image: ubuntu2004
#import shit import numpy import matplotlib.pyplot as plt from pylab import *
data = numpy.array([ [2.00, 1000.00, 17.00, 1.70, 1.10, 0.00, 0.50, 0.56], [3.00, 1000.00, 31.00, 2.90, 2.20, 0.00, 0.33, 0.58], [4.00, 1000.00, 33.00, 3.30, 3.30, 0.00, 0.25, 0.54], [5.00, 1000.00, 49.00, 4.50, 4.40, 0.00, 0.20, 0.80]])
xcoords = data[::1, 0] ycoords = data[::1, 3] error = data[::1, 4]
plt.figure() plt.errorbar(xcoords, ycoords, yerr=error ) plt.title("Test Graph") savefig('plot.png')