Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12816 > unrolled thread

Do Plot

Started bydwarnold45@suddenlink.net
First post2012-12-16 10:05 +0000
Last post2012-12-18 07:35 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Do Plot dwarnold45@suddenlink.net - 2012-12-16 10:05 +0000
    Re: Do Plot "Nasser M. Abbasi" <nma@12000.org> - 2012-12-17 07:53 +0000
    Re: Do Plot bar@ANTYSPAM.ap.krakow.pl - 2012-12-17 07:54 +0000
    Re: Do Plot Murray Eisenberg <murray@math.umass.edu> - 2012-12-18 07:35 +0000

#12816 — Do Plot

Fromdwarnold45@suddenlink.net
Date2012-12-16 10:05 +0000
SubjectDo Plot
Message-ID<kak6d6$k44$1@smc.vnet.net>
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.

David.

[toc] | [next] | [standalone]


#12817

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-12-17 07:53 +0000
Message-ID<kamj27$qqs$1@smc.vnet.net>
In reply to#12816
On 12/16/2012 4:05 AM, dwarnold45@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.
>
> David.
>

Need a Print

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

I *think* this is the case since version 6. Before that, Print[]
was not needed.

--Nasser



[toc] | [prev] | [next] | [standalone]


#12833

Frombar@ANTYSPAM.ap.krakow.pl
Date2012-12-17 07:54 +0000
Message-ID<kamj3h$qrk$1@smc.vnet.net>
In reply to#12816
dwarnold45@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.

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

Olaf, 

[toc] | [prev] | [next] | [standalone]


#12846

FromMurray Eisenberg <murray@math.umass.edu>
Date2012-12-18 07:35 +0000
Message-ID<kap6cr$46k$1@smc.vnet.net>
In reply to#12816
On Dec 17, 2012, at 2:54 AM, Nasser M. Abbasi <nma@12000.org> wrote:

> On 12/16/2012 4:05 AM, dwarnold45@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.
>>
>> David.
>>
>
> Need a Print
>
> Do[Print@Plot[x^2 + c, {x, -2, 2}], {c, -1, 1, 0.2}]
>
> I *think* this is the case since version 6. Before that, Print[]
> was not needed.



And the reason that Print was not needed before version 6 was _not_ 
because the behavior of Do changed. The function Do never returned a 
result. Rather, before version 6, Plot had a "side effect" of producing 
a displayed graphic.

---
Murray Eisenberg                                    murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305





[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web