Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

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.



  • Prev by Date: RE: Simple Recursive Map
  • Next by Date: Re: Simple Recursive Map
  • Previous by thread: White border in plots
  • Next by thread: Re: White border in plots