comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: UNIX PS plots -> Mac PS

Re: UNIX PS plots -> Mac PS
type: item
description: 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, yo…
creator: wilsont
date: 1995-09-21T07:00:00-00:00