Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: plots with variation of arbitrary constant

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60349] Re: [mg60316] plots with variation of arbitrary constant
  • From: "W. Craig Carter" <ccarter at mit.edu>
  • Date: Wed, 14 Sep 2005 03:27:16 -0400 (EDT)
  • References: <200509131006.GAA09646@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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