Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: DO and LISTPLOT

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95562] Re: [mg95492] DO and LISTPLOT
  • From: "David Park" <djmpark at comcast.net>
  • Date: Wed, 21 Jan 2009 06:49:22 -0500 (EST)
  • References: <29593775.1232448418058.JavaMail.root@m02>

Starting in Version 6 plots are no longer displayed as a 'side effect' but
are regular output. Do produces no regular output. However, you can get the
plots if you Print them from within the Do loop.

Do[Print[Plot[Sin[i x], {x, 0, Pi}]], {i, 1, 3}]

But you don't normally have to Print them if you do one at a time. The
following produces a plot directly. Notice that there is no ";" at the end
of the statement.

Plot[Sin[x], {x, 0, Pi}]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  






From: Luigi B [mailto:L.Balzano at gmail.com] 

Hallo,
 I use to run my routines in Mathematica 5.2. Now I have installed the
7.0. And this simple routine of making several plot one after the
other seems not to work anylonger.

Do[

 ListPlot[AzScan[i],
  AxesLabel -> {"\[Beta][\[Degree]]", "I[a.u.]"},
  BaseStyle -> {Large, FontFamily -> "Arial", Bold},
  PlotStyle -> {Red, PointSize[0.01]},
  PlotLabel -> "Azimuthal Scan"],

 {i, 65, 160}]


Does anyone have a clue what I am doing wrong?

Thanks
Luigi




  • Prev by Date: RE: Re: Mathematica Calls Home
  • Next by Date: Re: Map onto one column of a matrix
  • Previous by thread: Re: DO and LISTPLOT
  • Next by thread: Re: DO and LISTPLOT