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

Home » Public Forums » archive » Re: UNIX PS plots -> Mac PS
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: UNIX PS plots -> Mac PS [message #5086] Thu, 21 September 1995 00:00
wilsont is currently offline  wilsont
Messages: 2
Registered: September 1995
Junior Member
In article <PHIL.95Sep21110729@peace.med.ohio-state.edu>,
phil@peace.med.ohio-state.edu (Phil) wrote:

> I'm trying to create a postscript plot using IDL 4.0 on a sparc10 and
> would like to import that image into Wordperfect on a Mac. I'm using
> the following commands
>
> set_plot,'ps'
> device,bits_per_pixel=8,filename = 'test.eps'
> device,/helvetica,font_size=12,font_index=9
> device,/symbol,font_size=12,font_index = 10
>
> plot,x,wall,line=2,title='TR = 30 ms; V!Dmax!N = 25 cm/s;Z = 31.5 mm', $
> xtitle='!10Q',ytitle = 'Signal'
> oplot,x,blood
> device,/close
>
> I then use the mac utility ps2eps+ to convert the ps to a mac eps
> file. Everything works fine except the following:
>
> 1) the theta is messed up ('!10Q')
> 2) the y axis labels and title are all messed up.
>
> Does anyone know another work around? We don't have ghostscript for
> UNIX or pbmplus so if the suggestion is to use a UNIX util to convert
> to the mac format I guess I'm SOL.

Phil,

Try the following:

1) Use the /encapsulated keyword:

device,/encapsulated,bits_per_pixel=8,filename='test.eps'

2) Set !p.font=0 to tell IDL to use hardware fonts:

device,/symbol,font_size=12,font_index=10
!p.font=0

3) Set the font number for helvetica before you print the main title and
then use then use the "return to entry font" (!M) command after switching
to the symbol font:

plot,x,wall,line=2,title='!9TR = 30 ms; V!Dmax!N = 25 cm/s;Z = 31.5 mm', $
xtitle='!10Q!M',ytitle='Signal'

I use the mac utility epsConverter, but it sometimes has problems getting
the right bounding box. Using specific XSIZE and YSIZE settings may
help. If nothing in your plot is getting cut off (typically on the top
and left sides), then this isn't a problem with ps2eps+. I actually think
the only problem is that you are not telling IDL to set and restore your
font preferences and to specifically activate the hardware fonts with
!P.FONT = 0. Once the font is set to Symbol, it stays set when IDL draws
the Y axis title and values. Also, you might think about just setting
!P.FONT = 0 and then using the default hardware font indexes (helvetica =
!3 and Symbol = !9). See pages 3-37 to 3-40 in the IDL Reference Guide.
Good luck.

--
Tim Wilson
IAS Precision Optics
Mail Code 03115, 1-601-KO
Phone: (716) 722-3586, FAX: (716) 588-4939
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: AVI to IDL conversion
Next Topic: Simulated Annealing

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

Current Time: Sat Oct 11 15:53:21 PDT 2025

Total time taken to generate the page: 0.24477 seconds