Re: Mathematica 6: No more memory available problem with

*To*: mathgroup at smc.vnet.net*Subject*: [mg88870] Re: Mathematica 6: No more memory available problem with*From*: Kezhao Zhang <kezhao.zhang at gmail.com>*Date*: Tue, 20 May 2008 02:24:01 -0400 (EDT)*References*: <g0rlse$eli$1@smc.vnet.net>

On May 19, 3:47 am, echinococcus Multilocularis <lintwo... at yahoo.co.uk> wrote: > Hello Kezhao, > > All though the dataset might not be too large, a problem is > the fact that the new version of ListDensityPlot in Mathematica (6.0) will > make polygons of each of the pixels. Now for smaller images this already > generates a lot of memory-consumption, but especially when your > image is quite large it will eat away everything you've got in your memory. > > A better way to solve this problem would be to use ArrayPlot. This function has similar behavior as the old ListDensityPlot. The only difference is that it considers Arrays, and not Images. You can see this difference in the the way coordinates are used within the image. An image plotted with arrayplot appears to be upside down. To solve this, set the option DataReversed to True. > > Another solution would be to use the package MathVisionTools, which has > a function called RasterPlot, which does the same thing as ArrayPlot, but is slightly faster. MathVisionTools is developed at the Technical University of Eindhoven (Netherlands) and can be downloaded fromwww.mathvisiontools.net > (you will have to acquire a login code from the authors). > > RandomReal[{0,1},{78,20003}]; > Dimensions[d] > ArrayPlot[d,AspectRatio=C2=AE 0.3,ColorFunction=C2=AE"Rainbow",DataReversed=C2=AETrue] > > HTH, > > Gao Thanks very much for the help. ArrayPlot indeed works well. However, there is no way to plot the data in 3D using ListPlot3D, which crashes Mathematica, or ListPointPlot3D, which is unbearably slow. It is very disappointing that Mathematica 6's capabilities of visualizing large data set are so limited. Kezhao