On 10/17/2010 10:25 PM, John H Palmieri wrote:

On Oct 17, 12:27 pm, Jose Guzman<[email protected]>  wrote:
Hi everybody,

I want to plot a x versus y plot in Sage. Unfortunately , i do not know
if plot() or list_plot() can do it.
The documentation for list_plot contains this:

        If you have separate lists of x values and y values which you
want
        to plot against each other, use the ``zip`` command to make a
        single list whose entries are pairs of (x,y) values, and feed
the
        result into ``list_plot``:

           sage: x_coords = [cos(t)^3 for t in srange(0, 2*pi, 0.02)]
           sage: y_coords = [sin(t)^3 for t in srange(0, 2*pi, 0.02)]
           sage: list_plot(zip(x_coords, y_coords))

Is that what you want?

Thanks John! This was exactly what I was looking for! I did think about the zip option!!!!
--
John


--
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-support
URL: http://www.sagemath.org

Reply via email to