Re: How to: PlotRange->{0, All} ?
- To: mathgroup at smc.vnet.net
- Subject: [mg17348] Re: [mg17316] How to: PlotRange->{0, All} ?
- From: BobHanlon at aol.com
- Date: Mon, 3 May 1999 01:45:53 -0400
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 5/1/99 9:28:29 AM, mgi at granite.geol.vt.edu writes:
>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,
f[x_] := x^3 + 2 x^2 -6;
You can do half of what you want with the form
PlotRange -> {ymin, Automatic}
For example, to look at everything above y = -8
Plot[f[x], {x, -10, 10}, PlotRange -> {-8, Automatic}];
You can emulate a form of the other option (say everything below -2)
by looking at the negative of the function and taking the negative
of the y-values from the plot
Plot[-f[x], {x, -10, 10}, PlotRange -> {2, Automatic}];
Bob Hanlon