#3133: allow parametric_plot and parametric_plot3d to take a vector as input
-------------------------+--------------------------------------------------
Reporter: was | Owner: jason
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.4.1
Component: graphics | Keywords:
-------------------------+--------------------------------------------------
Comment(by jason):
The error is different now too:
{{{
sage: sage: var('x')
x
sage: sage: parametric_plot(vector([x,2*x,3*x^2]), (x,-1,3))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (21, 0))
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/home/grout/.sage/temp/good/20161/_home_grout__sage_init_sage_0.py in
<module>()
/home/grout/sage/local/lib/python2.5/site-packages/sage/plot/plot.pyc in
parametric_plot(funcs, *args, **kwargs)
1892 return plot(funcs, *args, **kwargs)
1893 elif (num_funcs == 3 and num_vars <= 2):
-> 1894 return
sage.plot.plot3d.parametric_plot3d.parametric_plot3d(funcs, *args,
**kwargs)
1895 else:
1896 raise ValueError, "the number of functions and the number
of free variables is not a possible combination for 2d or 3d parametric
plots"
/home/grout/sage/local/lib/python2.5/site-
packages/sage/plot/plot3d/parametric_plot3d.pyc in parametric_plot3d(f,
urange, vrange, plot_points, **kwds)
372
373 if not isinstance(f, (tuple, list)) or len(f) != 3:
--> 374 raise ValueError, "f must be a list or tuple of length 3"
375
376 if vrange is None:
ValueError: f must be a list or tuple of length 3
sage:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3133#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---