MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Version 6 graphics can be painfully slow

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84938] Re: [mg84822] Version 6 graphics can be painfully slow
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Sun, 20 Jan 2008 03:37:57 -0500 (EST)
  • Reply-to: jfultz at wolfram.com

You can use multi-points in version 6, which are a very efficient way of 
representing points.  It requires only a small change to your code...

Graphics[{PointSize[0.002], Point[data]}, AspectRatio -> Automatic]

I.e.,

Point[{list of points}]

rather than

{Point[{pt1}], Point[{pt2}], ...}

Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.


On Wed, 16 Jan 2008 03:20:38 -0500 (EST), Szabolcs Horv=E1t wrote:
>
>
> In some cases, version 6 graphics can be painfully slow.  Consider 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.  I 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).  So 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?
>
> (At the moment I temporarily switch back to << Version5`Graphics`)
>
> Szabolcs





  • Prev by Date: Re: Mathematica commenting of code using (* *) can't be nested well.
  • Next by Date: Re: Wavelet "filter"?
  • Previous by thread: Re: Re: Version 6 graphics can be painfully slow
  • Next by thread: Re: Re: Version 6 graphics can be painfully slow