Guest User

toyplot no worky

a guest
Jul 7th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import numpy, toyplot
  4.  
  5. x = numpy.linspace(0,10)
  6. y = x ** 2
  7.  
  8. canvas = toyplot.Canvas(width=500, height=500)
  9. axes = canvas.axes()
  10. mark = axes.plot(x, y)
  11.  
  12. # need a line here like e.g.
  13. # mark.show()   ??? as is in numpy/pyplot ??
Advertisement
Add Comment
Please, Sign In to add comment