Re: Part 2 of a recent post on Plot and v 5
- To: mathgroup at smc.vnet.net
- Subject: [mg44411] Re: [mg44358] Part 2 of a recent post on Plot and v 5
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Sat, 8 Nov 2003 04:50:54 -0500 (EST)
- References: <200311071016.FAA05351@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Well, probably Mathematica suspects that nothing "interesting" is going to happen outside the range -1 <= x <= 1, since no further change in the function values is expected. You may add the option PlotRange -> {{-1, 5},{0, 1}} to obtain the picture as you desire. Tomas Garza Mexico City ----- Original Message ----- From: "Mariusz Jankowski" <mjankowski at usm.maine.edu> To: mathgroup at smc.vnet.net Subject: [mg44411] [mg44358] Part 2 of a recent post on Plot and v 5 > Dear colleagues, I recently posted a question about the apparent change to Plot in version 5. I gather from the responses (thank you) that this new feature seemed natural or even desirable. That surprised me, so let me explain. > > I used > > Plot[UnitStep[x], {x, -1, 5}]; > > and found that Mathematica chose to display the function in the "more interesting" range of -1<=x<=1. > > My opinion is that an EXPLICITLY given range in any of the graphics commands should not be overridden, under any circumstances. Is there anyone who agrees with me? I would love to hear some of the opinions for and against, especially the former, because I can't think of any. > > Finally, if this indeed is a new feature, can anyone explain the algorithm that is used to choose the "interesting" interval and is it used in any other 2D graphic functions, and density or contour plots? > > Thanks, Mariusz >
- References:
- Part 2 of a recent post on Plot and v 5
- From: Mariusz Jankowski<mjankowski@usm.maine.edu>
- Part 2 of a recent post on Plot and v 5