Efficient representation of many different primitives
- To: mathgroup at smc.vnet.net
- Subject: [mg107874] Efficient representation of many different primitives
- From: "Fabrice P. Laussy" <fabrice.laussy at google.mail.com>
- Date: Mon, 1 Mar 2010 08:04:43 -0500 (EST)
- Organization: Janet Usenet Reading Service.
A bit over a year ago in this forum, it was discussed how to speed up
considerably the plotting of a set of points by passing the list to
Point rather than applying Point to each element of the list ([1], see
also [2]).
My question is: what happens if each point needs to be of a different
color? Does this mean one is stuck with the painfully slow
each-element-at-a-time method? This seems a silly problem because
instead of encoding the color as such, one could dealt with it as a
third coordinate, and then the global treatment of all points together
could apply (for instance, plotting {(x1,y1,z1), (x2,y2,z2), etc} as 3D
points rather than as 2D with color).
[1]
http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/thread/b21c73a465ff45ce#
[2]
http://reference.wolfram.com/mathematica/tutorial/EfficientRepresentationOfManyPrimitives.html