RE: In Plot, horizontal range is reduced depending on PlotRange
- To: mathgroup at smc.vnet.net
- Subject: [mg49626] RE: [mg49582] In Plot, horizontal range is reduced depending on PlotRange
- From: Alain Cochard <alain at geophysik.uni-muenchen.de>
- Date: Sun, 25 Jul 2004 02:55:28 -0400 (EDT)
- References: <200407240747.DAA05766@smc.vnet.net> <NDBBJGNHKLMPLILOIPPOIEBMECAA.djmp@earthlink.net>
- Reply-to: alain at geophysik.uni-muenchen.de
- Sender: owner-wri-mathgroup at wolfram.com
David Park writes: > Alain, > > Is this what you wanted? > > Plot[Exp[-10000 t^2], {t, 0, 1}, PlotRange -> {{0, 0.03}, {-.5, 1}}]; > > If you specify only a single plot range it refers to the vertical > range. Yes, this I new, and what I wanted was to have the horizontal range displayed from 0 to 1. I thought that using {t,0,1} was precisely supposed to accomplish that (it indeed does it if I don't specify any PlotRange), and not from 0 to about 0.53, as I described in my initial message. Now, using 2 ranges in PlotRange, as you suggest (this, I didn't know) does want I want: Plot[Exp[-10000 t^2], {t, 0, 1}, PlotRange -> {{0, 1}, {-.5, 1}}]; So I still have the question: is it normal that Mathematica can overrule my {t,tmin,tmax} specification. Besides, if, e.g., I use {t,1,2} with PlotRange -> {-.5,1}, then the horizontal axis is indeed displayed from 1 to 2 (and this was the first time in years that this happened to me). In other words, is there a way to know in advance, for a given choice of {t,tmin,tmax}, what is the {t,tmmamin,tmmamax} Mathematica is going to use, and what is the rationale behind that. Many thanks, David. Alain Cochard > > David Park > djmp at earthlink.net > http://home.earthlink.net/~djmp/ > > From: Alain Cochard [mailto:alain at geophysik.uni-muenchen.de] To: mathgroup at smc.vnet.net > > > Hello. Sorry if this has already been asked; I search the archives a > bit but could find anything relevant. > > Although the command > > Plot[Exp[-10000 t^2],{t, 0, 1}, PlotRange -> All] > > produces exactly what I expect, the following one produces a plot > where the horizontal axis is from 0 to about 0.53 only: > > Plot[Exp[-10000 t^2],{t, 0, 1},PlotRange ->{-.5,1}] > > I have $Version: > > Out[334]= 4.0 for Linux (July 22, 1999) > > If this is normal, what am I missing? In any case, how can display > with a prescribed horizontal range? > > Thanks, > Alain > > > >
- References:
- In Plot, horizontal range is reduced depending on PlotRange
- From: Alain Cochard <alain@geophysik.uni-muenchen.de>
- In Plot, horizontal range is reduced depending on PlotRange