Re: How to do a family of plots?
- To: mathgroup at smc.vnet.net
- Subject: [mg64503] Re: How to do a family of plots?
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 19 Feb 2006 05:36:17 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 2/18/06 at 2:50 AM, rob at piovere.com (1.156) wrote:
>I'm trying to get plots of p vs L with f as a parameter. Thanks for
>any help, Rob
>p[f_,L_]:=(1-f) ArcCos[Exp[-2/L]]
>{q,r,y,z}=Plot[p[f,L],{L,0.1,10}]
>/. f->{0.2,0.4,0.6,0.8}
Try this:
Show[
Block[
{$DisplayFunction = Identity},
Plot[(1 - #1)*ArcCos[Exp[-2/L]],
{L, 0.1, 10}]&/@ Range[0.2, 0.8, 0.2]]];
or if you need the individual plots assigned to variables
{q,r,y,z}= Plot[(1 - #1)*ArcCos[Exp[-2/L]],
{L, 0.1, 10}]&/@ Range[0.2, 0.8, 0.2];
--
To reply via email subtract one hundred and four