On Jan 3, 11:43 am, Eric Kangas <eric.c.kan...@gmail.com> wrote:
> well I have 2 million data points, and would like to have each one of
> them a different color.

Wow, I have trouble getting this to show up in a reasonable amount of
time.  2 million is a LOT.

R = rainbow(10^6)

also takes a long time.  What I'd do is something like

L = [(random(),random()) for i in range(10^6)] # random data so it
just fills up the unit square, I'm lazy
sum([point(L[i],color=R[i]) for i in range(10^6)])

but I bet this would take a LONG time.  I'm trying it now and it still
hasn't finished...

In any case, your monitor may not be able to resolve 10^6 colors, and
your eyes almost certainly can't (?).

Does anyone have a sense of what a "reasonable" and *fast* way to do
something like this would be? What are we really looking for here?
- kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to