MathGroup Archive 2007

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

Search the Archive

Re: Eliminate white border around DensityPlot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75176] Re: Eliminate white border around DensityPlot?
  • From: Jeremy B Maddox <maddoxjb at gmail.com>
  • Date: Thu, 19 Apr 2007 04:35:38 -0400 (EDT)
  • References: <f04ons$9o6$1@smc.vnet.net>

On Apr 18, 2:34 am, AES <sieg... at stanford.edu> wrote:
> I want to combine multiple frameless (i.e., Frame->False) DensityPlots
> in a GraphicsArray with no gap or white space between individual plots,
> and with certain features in the individual plots lining up where the
> plots meet.
>
> Using GraphicsSpacing->{0,0} doesn't do it; the individual density plots
> seem to have a white border around them.  GraphicsSpacing->{-0.1,0.1}
> comes close to what I want, but with some odd features.
>
> Any way to eliminate the white border?  [I know about the alternative
> way to combine graphics using Show[Graphics{Rectangle[-],...}]], but
> haven't gotten to trying it yet.)

Try something like the following where the FrameTicks are removed,
you can probably add them back again in Show.

plot = DensityPlot[x^2 + y^2, {x, -2,
    2}, {y, -2, 2}, FrameTicks -> None, PlotRange -> All, Frame ->
False,
    Ticks -> None]
Show[GraphicsArray[{{
    plot, plot}, {plot, plot}}], GraphicsSpacing -> {-.08, -.08},
Frame ->
    True, FrameTicks -> Automatic]

Best,

Jeremy



  • Prev by Date: Dirac Delta Function: Basics
  • Next by Date: Re: functional programming
  • Previous by thread: Re: Eliminate white border around DensityPlot?
  • Next by thread: ContourPlot3D Problem