Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How to export a lot of different plots?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93534] Re: [mg93512] How to export a lot of different plots?
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Thu, 13 Nov 2008 21:07:13 -0500 (EST)
  • References: <200811130903.EAA13951@smc.vnet.net>

Hi Yiping,

> I need to generates a lot of plots, but I don't know are 
> there any convenient ways to output my plot with different 
> file names, such as plot001.jpg.
> Can I just out put the plot with Export["f[i].jpg"] with the 
> loop index i? It seems that I can't run the label in the 
> export file name.
> The loop doesn't recognize the index i , and treat it as a letter.

Did you try

(
	Print[plt = Plot[]];
	out = StringJoin["plot_", ToString@#, ".jpg"];
	Export[out, plt]
)& /@ Range@Length@stuff?

And PNG's might be better for your purpose than JPG, esp. if you're
importing them to PPT.

Regards,

Dave.




  • Prev by Date: prolate spheroidal coordinates - alternative form
  • Next by Date: Re: Unacceptable bug in Mathematica
  • Previous by thread: How to export a lot of different plots?
  • Next by thread: Re: How to export a lot of different plots?