On Sun, Apr 6, 2008 at 7:23 PM, Hector Villafuerte <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  Current behavior for list_plot3d is "A 3-dimensional plot of a surface
>  defined by the list v of points in 3-dimensional space.". I was
>  expecting to see dots in space, not a surface; similar to this:
>  http://www-finmath.uchicago.edu/new/msfm/events/Workshop_21.png
>  http://www.stats.uwo.ca/computing/MatLab/rptimages/randu-html-0-hg.png
>
>  Is there a way to do this is Sage?

Of course ;-).   Use point3d:

Definition:     point3d(v, size=1, **kwds)
Docstring:

        Plot a point or list of points in 3d space.

        INPUT:
            v -- a point or list of points
            size -- (default: 1) size of the point (or points)
            color -- a word that describes a color
            rgbcolor -- (r,g,b) with r, g, b between 0 and 1 that
describes a color
            opacity -- (default: 1) if less than 1 then is transparent

        EXAMPLES:
            sage: sum([point3d((i,i^2,i^3), size=5) for i in range(10)])


sage: point3d([f() for _ in xrange(1000)], size=5)

sage: def f():
    t = 2*pi*random()
    return (cos(t), sin(t), random())
....:
sage: point3d([f() for _ in xrange(1000)], size=5)

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

<<inline: Picture 2.png>>

Reply via email to