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

Home » Public Forums » archive » working on multiple z buffers at once?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
working on multiple z buffers at once? [message #75072] Tue, 15 February 2011 19:15 Go to next message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
So I'm looping through files, and after processing each file I have a plot. In the end I want to have:
1. A copy of the plot for each file.
2. A master figure that has the plots for all the files on it, in a nice grid.
I'd like these as both postscript and .png ideally, but I at least need postscript of the individual plots and a .png of the master figure.

So what I'd really like to do is to be able to output to several different postscript files at once. Barring that, I'd like to be able to output to several different z buffers at once.

My best idea so far is to create a z buffer, write the first plot in the grid to it, tvread() it out to a variable, then plot out the first individual plot to a postscript and/or png file, then re-create the old z buffer by putting the image back in, add the second plot, tvread() it back to a variable, etc....

Which, I'm sure, would work. But seems a little less than elegant. Does anyone have any better suggestions?

-Jeremy.
Re: working on multiple z buffers at once? [message #75126 is a reply to message #75072] Thu, 17 February 2011 07:09 Go to previous messageGo to next message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
Beautiful, thanks!

-Jeremy.
Re: working on multiple z buffers at once? [message #75171 is a reply to message #75072] Fri, 18 February 2011 09:01 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Friday, February 18, 2011 11:29:05 AM UTC-5, David Fanning wrote:
> Jeremy Bailin writes:
>
>> By the way, I don't suppose you could add equivalent controls to programmatically create the raster files? :-)= (or is the answer: just span a call to convert yourself!)
>
> Yeah, I thought about this. I knew this was coming.
> I didn't do it because there would have to be controls
> for rasters with and without ImageMagick. I think it
> needs to be done. But I need to prioritize my time
> right now, and this got put down at the bottom of the
> prioritized ToDo list. It is NOT hard to do. You
> could probably figure it out and send it to me, now
> that you have a prototype finished for you. :-)


Heheh... fair enough. :-)= Sounds like a good thing to do on a Friday afternoon...

-Jeremy.
Re: working on multiple z buffers at once? [message #75175 is a reply to message #75072] Fri, 18 February 2011 08:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeremy Bailin writes:

> By the way, I don't suppose you could add equivalent controls to programmatically create the raster files? :-)= (or is the answer: just span a call to convert yourself!)

Yeah, I thought about this. I knew this was coming.
I didn't do it because there would have to be controls
for rasters with and without ImageMagick. I think it
needs to be done. But I need to prioritize my time
right now, and this got put down at the bottom of the
prioritized ToDo list. It is NOT hard to do. You
could probably figure it out and send it to me, now
that you have a prototype finished for you. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 7: Window blanks while waiting for input from the workbench
Next Topic: Code optimization

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

Current Time: Wed Oct 08 13:46:52 PDT 2025

Total time taken to generate the page: 0.06100 seconds