MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: plots with variation of arbitrary constant


Hi Narasimham ,

> How to show 2D plots for chosen range of a constant?
> Show[Plot[Sin[x]+ c,{x,0,Pi}],{c,1,10,1}] does not work.

No, but

	Plot[Sin[x] + #, {x, 0, Pi}, PlotRange -> {1, 12}, PlotLabel ->
ToString[#]] & /@ Range[10];
	SelectionMove[EvaluationNotebook[], All, GeneratedCell];
	FrontEndTokenExecute["OpenCloseGroup"]
	FrontEndTokenExecute["SelectionAnimate"]

Does.  There are many other solutions.

Regards,

Dave.


  • Prev by Date: Re: plots with variation of arbitrary constant
  • Next by Date: Re: plots with variation of arbitrary constant
  • Previous by thread: Re: plots with variation of arbitrary constant
  • Next by thread: Re: plots with variation of arbitrary constant