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 
Return to the default flat view Create a new topic Submit Reply
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/
[Message index]
 
Read Message
Read Message
Read Message
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: Fri Oct 10 16:32:23 PDT 2025

Total time taken to generate the page: 0.80249 seconds