Re: Multi-page graphics in IDL 8 [message #72371] |
Fri, 03 September 2010 10:40  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article
<8a5d65d5-be94-4b27-9e97-9ffff6cfe4ba@u5g2000prn.googlegroups.com>,
Mark Piper <mpiper@ittvis.com> wrote:
> Spawning a call to ImageMagick's 'convert' program will join several
> PS files into a single PDF file:
>
> infiles = ['plot1.eps', 'plot2.eps']
> infiles = strjoin(infiles, ' ')
> outfile = 'plots.pdf'
> cmd = 'convert -density 300 ' + infiles + ' -quality 100 ' + outfile
> spawn, cmd
Thanks. I'm aware of several ways to concatenate PDF files, but if New
Graphics can't make multi-page documents, it will be a significant loss
of convenience. In fact, I think we will have to stay with Old Graphics
for most purposes.
Ken
|
|
|
Re: Multi-page graphics in IDL 8 [message #72372 is a reply to message #72371] |
Fri, 03 September 2010 08:00   |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Sep 2, 2:33 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> We frequently use direct graphics and !P.MULTI to generate graphics output
> where there are multiple plots on multiple pages. It is not hard to make
> this work either to the display or to a PS file. When drawing to the display
> you can wait for a <cr> before moving to the next page. When creating PS, you
> just draw all the plots to a single file. The PS file can then be easily converted
> to a multi-page PDF file.
>
> With the new Graphics system, I can see how to draw multiple plots in a single
> window, but not how to create multi-page graphics. Is the concept of multi-page graphics
> not part of the new Graphics system?
>
> I can see that it could be done by keeping track of the number of plots in a window and
> saving the window to a graphics file when full, etc., but the result is then multiple PDF files
> rather than a single file.
>
> Am I missing something? Is there an easy way to do what I need with the New Graphics
> system, or do I need to stay with Classic Graphics.
>
> Thanks, Ken Bowman
Hi Ken,
Spawning a call to ImageMagick's 'convert' program will join several
PS files into a single PDF file:
infiles = ['plot1.eps', 'plot2.eps']
infiles = strjoin(infiles, ' ')
outfile = 'plots.pdf'
cmd = 'convert -density 300 ' + infiles + ' -quality 100 ' + outfile
spawn, cmd
mp
|
|
|
Re: Multi-page graphics in IDL 8 [message #72506 is a reply to message #72371] |
Tue, 07 September 2010 06:34  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Kenneth P. Bowman wrote:
> In article
> <8a5d65d5-be94-4b27-9e97-9ffff6cfe4ba@u5g2000prn.googlegroups.com>,
> Mark Piper <mpiper@ittvis.com> wrote:
>
>> Spawning a call to ImageMagick's 'convert' program will join several
>> PS files into a single PDF file:
>>
>> infiles = ['plot1.eps', 'plot2.eps']
>> infiles = strjoin(infiles, ' ')
>> outfile = 'plots.pdf'
>> cmd = 'convert -density 300 ' + infiles + ' -quality 100 ' + outfile
>> spawn, cmd
>
> Thanks. I'm aware of several ways to concatenate PDF files, but if New
> Graphics can't make multi-page documents, it will be a significant loss
> of convenience. In fact, I think we will have to stay with Old Graphics
> for most purposes.
Yeah, no kidding. But, just to clarify (since I don't create PDF files directly from IDL), are you saying that the
creation of multi-page postscript files is no longer possible with IDL8 New Graphics?
cheers,
paulv
|
|
|