Re: How to: PlotRange->{0, All} ?
- To: mathgroup at smc.vnet.net
- Subject: [mg17406] Re: How to: PlotRange->{0, All} ?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 6 May 1999 02:44:18 -0400
- References: <7gfrl6$6eb@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Matthias Georg Imhof <mgi at granite.geol.vt.edu> wrote in message news:7gfrl6$6eb at smc.vnet.net... > Hello, > > I am trying to figure out a way to modify plotrange that one could do: > > PlotRange->{zmin, All} or PlotRange->{All, zmax} which would plot only > between zmin and the max value or the min value and zmax. > > Typically, one can only do: > PlotRange->All or > PlotRange->{zmin, zmax} > > Any ideas? > > Matthias Imhof > -- > ************************************************************************** > * Matthias G.Imhof, Ph.D. phone: (540) 231 6004 * > * Derring Hall 4044 fax: (540) 231 3386 * > * Virginia Tech email: mgi at vt.edu * > * Blacksburg, VA 24061-0420 http://www.geol.vt.edu/profs/mgi * > * There is no dark side of the moon really. Matter of fact it's all dark * > ************************************************************************** > Mathias, Show@@ Block[{$DisplayFunction=Identity}, {#, PlotRange-> {0,PlotRange[Show[#,PlotRange->All]][[2,2]]}}&[ Plot[1/x,{x,-1,1}]] ] Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565