Re: DO and LISTPLOT

*To*: mathgroup at smc.vnet.net*Subject*: [mg95569] Re: [mg95492] DO and LISTPLOT*From*: Murray Eisenberg <murray at math.umass.edu>*Date*: Wed, 21 Jan 2009 06:50:40 -0500 (EST)*Organization*: Mathematics & Statistics, Univ. of Mass./Amherst*References*: <200901201045.FAA16715@smc.vnet.net>*Reply-to*: murray at math.umass.edu

The result of a Do expression is always the final value from the loop -- which makes a lot of sense. What happened with Mathematica < 6.0 is that a ListPlot (and other Plot-type expressions) produced the graphics display as a side-effect, not as a result. In 6.0+, the result of a ListPlot (etc.) IS the graphic. So your Do loop returns as result -- and thus displays -- only the final value returned, namely, ListPlot[AzScan[160],...]. So if you want to see each and every one of the plots, simply wrap the ListPlot expression with Print. Luigi B wrote: > 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 > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305