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

Home » Public Forums » archive » David Fanning's psconfig program
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
David Fanning's psconfig program [message #36599] Mon, 06 October 2003 12:28
David Jackson is currently offline  David Jackson
Messages: 8
Registered: October 2003
Junior Member
Hi,

I've been trying to use psconfig and am having a couple of problems.

First, I am plotting colors on a black background. I am using color
table 4 and in my plot command, I include the keywords color = 255
(yellow) and background=0 (black). This looks fine on the screen, but
when I include the psconfig program, I get a white background instead
of black.

The second problem is that if I include the keyword "fontinfo" in the
psconfig function, I get an error that says "Keyword CLOSE_FILE not
allowed in call to: DEVICE" and no postscript file is generated. I
have included many other keywords in the psconfig function and do not
get a problem, but as soon as I include fontinfo, I get this error.

Here is the relevant code that I am using:

pro ferroplot, Postscript=postscript,_Extra=extra
postscript=keyword_set(postscript)

if postscript eq 1 then begin
set_plot,'ps'

keywords=psconfig(fontinfo=1,fonttype=1,truetype=1,times=1,f ontsize=16,cance
l=cancelled)
device,_Extra=keywords
endif
...
device,decomposed=0
loadct,4
plot, x, y, font=1, color=255, background=0, title='Plot Title'
...
if postscript eq 1 then begin
device,/close_file
set_plot,thisdevice
endif
END

I then call this with ferroplot for on screen plotting or ferroplot,
postscript=1 for ps output.

Any help would be appreciated.
David


--
David P. Jackson
Associate Professor
Dept. of Physics & Astronomy
Dickinson College
Carlisle, PA 17013
(717) 245-1073
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl on linux other than redhat?
Next Topic: Re: David Fanning's psconfig program

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

Current Time: Sat Oct 11 08:15:28 PDT 2025

Total time taken to generate the page: 0.64190 seconds