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

Home » Public Forums » archive » Re: Making a ginormous 54 panel plot...
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: Making a ginormous 54 panel plot... [message #73825 is a reply to message #73824] Wed, 01 December 2010 14:10 Go to previous messageGo to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On Dec 1, 2:49 pm, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < 5d27124d-2a89-4667-b024-dd293bda5...@f21g2000prn.googlegroup s.com >,
>
>
>
>  OUWxGuesser <aaron.kenn...@und.nodak.edu> wrote:
>> Here's the deal.  I have 54 .png plots I want to combine into a 9x6
>> panel plot in IDL.  Native resolution for each image is 1000x700
>> pixels.  This exceeds the maximum buffer size of 8192x8192.
>
>> No problem... I use congrid and shrink everything to 90% of the
>> original size which gives me a final image size of 8100x3780.
>
>> In my code, I first specify the window as:
>> p=window(dimensions=[8100,3780])
>
>> I then loop through the files I need to panelize (or is it
>> penalize? :) )  and place them in the appropriate places.  This
>> works.
>
>> The issue I have is IDL does not listen to my dimensions for the
>> original window! Instead, it creates a window that is 8192x2632.
>> This creates large whitespace between the columns and shrinks the
>> individual panels beyond the original 90% of the original size I
>> specified.  This makes things tough to read which defeats the
>> purpose... I want to place these plots on a poster for a conference.
>> My alternative *cringe* is to use GIMP to cut and paste the 54 plots
>> manually.  Yikes!
>
>> I have tried messing with the buffer settings thinking this might be
>> the source of the problem, but I just end up getting  MESA frame
>> buffer errors and in some cases, IDL crashes to the desktop with no
>> warning. If anyone has any suggestions or assistance, I'd greatly
>> appreciate it!
>
> Why are you opening a window?
>
> Can't you just read the PNG files, concatenate or copy them
> into your big array, then write the array out as a new PNG.
>
> Ken Bowman

If not using IDL for the final image is an option, then you should try
montage (from Imagemagick) to tile the images. You have control over
the layout, the individual image sizes and the spacing between the
images.

Here is the man page for montage:
http://www.imagemagick.org/Usage/montage/

If all else fails, convert from the images from png to eps, include in
a tex file in the layout you want and generate a ps or pdf file.

Cheers,
Manodeep
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: problem calling histoplot
Next Topic: Re: Negative array indices

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

Current Time: Wed Oct 08 19:34:02 PDT 2025

Total time taken to generate the page: 0.00432 seconds