 
 
 
 
 
 
Re: How to do a family of plots?
- To: mathgroup at smc.vnet.net
- Subject: [mg64497] Re: [mg64476] How to do a family of plots?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 19 Feb 2006 05:36:07 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
p[f_,L_]:=(1-f) ArcCos[Exp[-2/L]];
Plot[Evaluate[p[f,L]/.f->{0.2,0.4,0.6,0.8}],
    {L,0.1,10},PlotStyle->{Red,Purple,Blue,Green}];
Plot[Evaluate[p[{0.2,0.4,0.6,0.8},L]],
    {L,0.1,10},PlotStyle->{Red,Purple,Blue,Green}];
Bob Hanlon
> 
> From: "1.156" <rob at piovere.com>
To: mathgroup at smc.vnet.net
> Subject: [mg64497] [mg64476] How to do a family of plots?
> 
> Experts, I have used the scheme below with ParametricPlot and it worked. 
> But with a simple plot it doesn't. It seems clear the plot function is 
> not seeing the f variable.  Plot is not getting machine sized numbers, 
> etc. Nothing I've tried seems to help.
> 
> 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}
> 
> 

