Re: Version 6 graphics can be painfully slow
- To: mathgroup at smc.vnet.net
- Subject: [mg84871] Re: Version 6 graphics can be painfully slow
- From: ragfield <ragfield at gmail.com>
- Date: Wed, 16 Jan 2008 23:12:57 -0500 (EST)
- References: <fmkerk$72g$1@smc.vnet.net>
On Jan 16, 3:22=A0am, Szabolcs Horv=E1t <szhor... at gmail.com> wrote: > In some cases, version 6 graphics can be painfully slow. =A0Consider this > example: > > data = Table[{Random[], Random[]}, {100000}]; > Graphics[{PointSize[0.002], Point /@ data}, AspectRatio -> Automatic] // > Show > > This used to work fine in version 5.2, but it takes forever to complete > in version 6.0.1. =A0I have a dataset with about 250 000 points that I > would like to plot, so this problem is really annoying ... > > The strange thing is that as soon as the graphic appears, resizing is > fast and works fine (especially with antialiasing disabled). =A0So it is > not the /drawing/ itself that takes so long. > > I really hope that these problems will be fixed in 6.1, but until then, > does anyone have a suggestion for speeding this up? Your example runs in 73 seconds on my 4 year old desktop. If you wrap Point[] around the entire array (rather than mapping it across the array) it returns instantaneously. Graphics[{PointSize[0.002], Point[data]}, AspectRatio -> Automatic] See tutorial/EfficientRepresentationOfManyPrimitives in the Mathematica 6 documentation. -Rob