MathGroup Archive 2012

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

Search the Archive

Re: Do Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129127] Re: Do Plot
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Mon, 17 Dec 2012 02:56:06 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

On 12/16/12 at 5:05 AM, dwarnold45 at suddenlink.net wrote:

>Should this command work in Mathematica 9?

>Do[Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]

>Not working on my Macbook Pro, Snow Leopard 10.6.8.

I assume by "not working" you mean you got no graphical output.
If so, this is how things should work since Do does not output
the results of any expression. Try

Do[Print@Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]

or

Table[Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]

or

Plot[Table[x^2 + c, {c, -1, 1, 0.2}], {x, -2, 2}]




  • Prev by Date: Re: Do Plot
  • Next by Date: Re: silly question on formatting tables
  • Previous by thread: Re: Do Plot
  • Next by thread: Re: Do Plot