MathGroup Archive 2005

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

Search the Archive

Re: plots with variation of arbitrary constant


> 
> 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.

A straightforward way:

Plot[Table[Sin[x] + c,{c,10}],{x,0,Pi},PlotStyle->Table[Hue[0.66*c/10],{c,10}]

You may need to Evaluate[] on the first argument to Plot.


  • 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