Re: Hiding parts of a graph
- To: mathgroup at smc.vnet.net
- Subject: [mg30368] Re: [mg30336] Hiding parts of a graph
- From: BobHanlon at aol.com
- Date: Sun, 12 Aug 2001 02:29:56 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 2001/8/11 4:09:45 AM, amsommer at pacific.mps.ohio-state.edu
writes:
>I have been trying to plot several variations of a parabola-like function
>on one graph. The problem that I am encountering is that I only want part
>of each function to appear on the graph. I have tried the following
>example:
>
>list = Table[Plot[x^2 + n, {x, n, 10}], {n, 0, 10, 1}]
>Show[list]
>
>That example works and graphs each function starting at the desired point.
>The problem I am having is that I do not want equal intervals of n. I
>have a list of values that I need to use as my n value. I have tried the
>following with no success:
>
>(This is an extremely simplified example of the function and n values that
>I need to graph)
>
>a={1,3,5.6,99,101.01}
>Plot[Evaluate[ReplaceAll[x^2 + n, n->a]],{x, n, 10}] -- I have also tried
>this with {x, a, 10}
>
>If there are any ideas on how I might go about doing this please let me
>know.
>
a={1,3,5.6,99,101.01};
list = (Plot[x^2 + #, {x, #, 10}]& /@ a);
Bob Hanlon
Chantilly, VA USA