Re: White border in plots
- To: mathgroup at smc.vnet.net
- Subject: [mg35433] Re: [mg35404] White border in plots
- From: "P.J. Hinton" <paulh at wolfram.com>
- Date: Fri, 12 Jul 2002 04:28:51 -0400 (EDT)
- Organization: "Wolfram Research, Inc."
- Sender: owner-wri-mathgroup at wolfram.com
On Thu, 11 Jul 2002, Thomas Manz wrote:
> I want to calculate some patterns but I always get artifacts. The
> reason seems to be the white border around the plots. If I calculate
> 100 x 100 points and plot or export them (see example below), the
> picture is really 100 x 100 pixels but with a white border. So my
> calculations are 'squeezed' (some lines and rows are missing!). Does
> anyone have an idea how to get rid of this white border or will I
> really have to export my tables to a textfile and use another software
> zu produce a bitmap-file??
<snip>
You need to adjust the PlotRange option to fit tightly around the graphic.
t = Table[Sin[(x + y)], {x, 0, 100}, {y, 0, 100}];
Export["test.tif",
ListDensityPlot[
t, Frame -> False, Mesh -> False, ImageSize -> {100, 100},
PlotRange -> {{0, 100}, {0, 100}, All}]
]
--
P.J. Hinton
User Interface Programmer paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.