Changeset 7867:f843ab589376
- Timestamp:
- 12/22/07 14:07:56 (5 years ago)
- Branch:
- default
- Children:
- 7868:11c9d8388d66, 7888:d12fcefadeb1
- File:
-
- 1 edited
-
sage/plot/plot.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/plot/plot.py
r7866 r7867 1693 1693 options[k] = v 1694 1694 1695 done = False1696 1695 if not isinstance(points, (list,tuple)) or \ 1697 1696 (isinstance(points,(list,tuple)) and len(points) <= 3 and not … … 1702 1701 pass 1703 1702 1704 if not done: 1705 if coerce: 1706 xdata = [] 1707 ydata = [] 1708 for z in points: 1709 if len(z) == 3: 1710 return self._graphic3d()(points, coerce=coerce, **kwds) 1711 xdata.append(float(z[0])) 1712 ydata.append(float(z[1])) 1713 else: 1714 for z in points: 1715 if len(z) == 3: 1716 return self._graphic3d()(points, coerce=coerce, **kwds) 1717 xdata.append(z[0]) 1718 ydata.append(z[1]) 1703 xdata = [] 1704 ydata = [] 1705 if coerce: 1706 for z in points: 1707 if len(z) == 3: 1708 return self._graphic3d()(points, coerce=coerce, **kwds) 1709 xdata.append(float(z[0])) 1710 ydata.append(float(z[1])) 1711 else: 1712 for z in points: 1713 if len(z) == 3: 1714 return self._graphic3d()(points, coerce=coerce, **kwds) 1715 xdata.append(z[0]) 1716 ydata.append(z[1]) 1719 1717 1720 1718 return self._from_xdata_ydata(xdata, ydata, True, options=options)
Note: See TracChangeset
for help on using the changeset viewer.
