| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168742Image: ubuntu2004
File: /usr/local/sage2/local/lib/python2.6/site-packages/sage/plot/line.py
Source Code (starting at line 226):
def line(points, **kwds): """ Returns either a 2-dimensional or 3-dimensional line depending on value of points. For information regarding additional arguments, see either line2d? or line3d?. EXAMPLES:: sage: line([(0,0), (1,1)]) sage: line([(0,0,1), (1,1,1)]) """ try: return line2d(points, **kwds) except ValueError: from sage.plot.plot3d.shapes2 import line3d return line3d(points, **kwds)