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

Home » Public Forums » archive » Re: best image plotting routine
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
Re: best image plotting routine [message #66452] Fri, 08 May 2009 11:23
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
<liamgumley@gmail.com> wrote in message
news:d7125d48-a883-4b44-85a9-9c56f2839cfb@x1g2000prh.googleg roups.com...
On May 8, 1:39 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
..
> what is the best routine to use to create this plot of an image?
> Note there are 2 requirements.
[stuff deleted]

Download the PIP sample programs from

http://gumley.com/PIP/Sample_Programs/PIP_programs.zip

and try the following.

(snip)


Thanks Liam,
I'll check it out.


Cheers,
bob
Re: best image plotting routine [message #66462 is a reply to message #66452] Fri, 08 May 2009 03:36 Go to previous message
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
liamgumley@gmail.com wrote:
> On May 8, 1:39 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
>> I often use a simple contour command (with /fill) to plot an image,
>> however that is not practical for very large images with NANs in it.
>> One must use /cell, and that takes forever to render, and creates
>> 120mb postscript files.
>>
>> what is the best routine to use to create this plot of an image?
>> Note there are 2 requirements.
>>
>> 1) it must accept "all" graphics keywords.
>> - i use xtickformat to print julian days for instance, ytickv, ytickname,
>> log axis, etc
>>
>> 2) it must create scalable and small postscript files
>> - a bitmap into a postscript is not acceptable. the quality
>> is too low for publication.
> [stuff deleted]
>
> Download the PIP sample programs from
>
> http://gumley.com/PIP/Sample_Programs/PIP_programs.zip
>
> and try the following. First, create the plot onscreen:
>
> data = dist(32)
> imdisp, data, /axis, title='IMDISP TEST', $
> xtitle='X AXIS', xtickformat='(f6.1)', $
> /ylog, yrange=[0.1, 1000.0]
>
> then switch to Postscript and redo the image
>
> pson
> device, /helvetica
> imdisp, data, /axis, title='IMDISP TEST', $
> xtitle='X AXIS', xtickformat='(f6.1)', $
> /ylog, yrange=[0.1, 1000.0], font=0
> psoff
>
> Note the font=0 keyword to use the device font. If you are using a Mac
> as previously discussed here, you might want to do something like this
> first:
>
> data = rebin(data, 1024, 1024, /sample)
>
> Does the resulting PostScript file meet your needs?
>
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
>

Hi Liam,

I tried but, strangely enough, can't see any text, neither on the screen nor on
the plot. This is with IDL Version 6.4 (linux x86_64 m64).

Regards,

Bringfried
Re: best image plotting routine [message #66463 is a reply to message #66462] Fri, 08 May 2009 02:37 Go to previous message
liamgumley is currently offline  liamgumley
Messages: 74
Registered: June 2005
Member
On May 8, 1:39 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
> I often use a simple contour command (with /fill) to plot an image,
> however that is not practical for very large images with NANs in it.
> One must use /cell, and that takes forever to render, and creates
> 120mb postscript files.
>
> what is the best routine to use to create this plot of an image?
> Note there are 2 requirements.
>
> 1) it must accept "all" graphics keywords.
> - i use xtickformat to print julian days for instance, ytickv, ytickname,
> log axis, etc
>
> 2) it must create scalable and small postscript files
> - a bitmap into a postscript is not acceptable. the quality
> is too low for publication.
[stuff deleted]

Download the PIP sample programs from

http://gumley.com/PIP/Sample_Programs/PIP_programs.zip

and try the following. First, create the plot onscreen:

data = dist(32)
imdisp, data, /axis, title='IMDISP TEST', $
xtitle='X AXIS', xtickformat='(f6.1)', $
/ylog, yrange=[0.1, 1000.0]

then switch to Postscript and redo the image

pson
device, /helvetica
imdisp, data, /axis, title='IMDISP TEST', $
xtitle='X AXIS', xtickformat='(f6.1)', $
/ylog, yrange=[0.1, 1000.0], font=0
psoff

Note the font=0 keyword to use the device font. If you are using a Mac
as previously discussed here, you might want to do something like this
first:

data = rebin(data, 1024, 1024, /sample)

Does the resulting PostScript file meet your needs?

Liam.
Practical IDL Programming
http://www.gumley.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pointer problems
Next Topic: Is there any progress about memory management in IDL?

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

Current Time: Wed Oct 08 15:36:24 PDT 2025

Total time taken to generate the page: 0.00600 seconds