Re: Rendering Error in Raster and RasterArray
- To: mathgroup at smc.vnet.net
- Subject: [mg31575] Re: Rendering Error in Raster and RasterArray
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 14 Nov 2001 03:41:51 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <9smqi9$h2q$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, export the graphics to an eps file and look at it with ghostscript. There is *no* gap. That is a problem (and not the largest) of Mathematica's PostScript interpreter. You can't not fix it without writing you own rasterps replacement. However, nobody will see the gaps in the graphics of you notebeook, everyone will see the perfect graphics of your final PostScript document. Regards Jens David Park wrote: > > Dear MathGroup, > > There is a slight but noticable enough to be annoying error in the rendering > of Raster and RasterArray. The error is that the rendering does not fit the > full specified y range but leaves a slight gap. The x range does seem to be > correctly filled. > > array = N[Table[(1/9)*Mod[i, j], {i, 10}, {j, 10}]]; > Show[Graphics[ > {Raster[array, {{0, 0}, {1, 1}}], > Raster[array, {{0, 1}, {1, 2}}], > Raster[array, {{1, 0}, {2, 1}}]}], > AspectRatio -> Automatic]; > > array = Table[GrayLevel[0.1*Mod[i, j]], {i, 2, 10}, > {j, 2, 10}]; > Show[Graphics[ > {RasterArray[array, {{0, 0}, {1, 1}}], > RasterArray[array, {{0, 1}, {1, 2}}], > RasterArray[array, {{1, 0}, {2, 1}}]}], > AspectRatio -> Automatic]; > > The same error does not occur in the rendering of rectangles. > > Show[Graphics[ > {Rectangle[{0, 0}, {1, 1}], > Rectangle[{0, 1}, {1, 2}], > Rectangle[{1, 0}, {2, 1}]}], > AspectRatio -> Automatic]; > > David Park > djmp at earthlink.net > http://home.earthlink.net/~djmp/