Re: Margins in DensityGraphics[] et al.
- To: mathgroup at smc.vnet.net
- Subject: [mg43002] Re: Margins in DensityGraphics[] et al.
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Fri, 8 Aug 2003 00:26:18 -0400 (EDT)
- References: <bg7v4v$hgo$1@smc.vnet.net>
- Reply-to: "Allan Hayes" <hay at haystack.demon.co.uk>
- Sender: owner-wri-mathgroup at wolfram.com
Roland, Further to Jens's suggestion - you probably know this stuff already. Clipping can be done by dragging a handle of the bounding box of the graphic while holding down the control key. This sets the cell option ImageRegion. The option can also be set by typing into the cell expression (seen by using menu Format>ShowExpression) or by using the option inspector. On the example given under DensityGraphics in the Help Browser a setting of ImageRegion ->{{-.025, 1.025},{-.025,1.025}} worked (with the frame ticks turned off). But a different setting is needed for ContourPlot. Show[DensityGraphics[Table[Sin[x y], {x, 0, 2 Pi, Pi/8}, {y, 0, 2 Pi, Pi/8}], FrameTicks -> False]] Allan --------------- Allan Hayes hay at haystack.demon.co.uk Voice: +44 (0)116 241 8747 Fax: +44 (0)870 164 0565 "Roland Nilsson" <rolle at ifm.liu.se> wrote in message news:bg7v4v$hgo$1 at smc.vnet.net... > Hi people, > > anybody know if there's a way to get DensityGraphics[] and related functions > to draw its objects without any margins? I've tried various options, but I > always get my density plots with a small whitespace-border, which changes > with plot size in some (seemingly) unpredictable manner. I need to be able > to get the exact positions on-screen of columns and rows in density plots, > so this is a problem... > > > Best Regards, > > --------------------------------------------- > Roland Nilsson > IFM Computational Biology > Linköping University, Sweden > rolle at ifm.liu.se > >