comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Save some plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Save some plots [message #81929] Thu, 08 November 2012 23:30 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
This will have been saving each one into a file named exactly as instructed, 'i.jpg', overwriting each time after the first. You want the value of variable 'i' to be put into the filename string, so your line to do the saving should be:

p.save, StrTrim(i, 2)+'.jpg'

Cheers,
-Dick

Dick Jackson Software Consulting
Victoria, BC, Canada

On Thursday, November 8, 2012 4:13:42 AM UTC-8, dave poreh wrote:

> for i = 0, 302162 do begin
> p = plot(x(*,i))
> p.save, 'i.jpg'
> endfor
>
> But, i need just to save these plots with the numbers like: 1.jpg, 2.jpg, ...
> Can someone help me please?
> Cheers,
> Dave
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: change values of structure variable
Next Topic: Memory Allocation Problem- IDL 8.2

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:44:25 PDT 2025

Total time taken to generate the page: 0.56389 seconds