MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

psfix in 2.2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5208] psfix in 2.2
  • From: pitney at vixen.cso.uiuc.edu (John Pitney)
  • Date: Thu, 14 Nov 1996 02:02:11 -0500
  • Organization: University of Illinois at Urbana
  • Sender: owner-wri-mathgroup at wolfram.com

I've been using Mathematica for Windows 2.2.3 with an AIX
kernel, and I'm looking for suggestions regarding printing
postscript files generated with Mathematica. 

I have written a Mathematica program that generates several
plots, which are then arranged in a GraphicsArray.  I would
like to save the graphics array in an eps file for inclusion
in a paper.  I use the following command to generate the ps file:
Display["!psfix -epsf psfile.ps", myplot]

Usually this works, but sometimes (particularly with complicated
output) it generates a bad postscript file.  Here's part of the
Ghostscript error that's generated:

Operand stack:
    0.23421  648.0  468.0  --nostringval--  --nostringval--  --nostringval--

--- Begin offending input ---
22769 .04897 L
.22862 .06389 L
.22955 .07997 L
.23048 .09562 L
.23142 .10889 L
.23235 .1178 L
.23328 .12066 L
.23421 .
.4744 .25611 L
.47533 .27836 L
.47626 .2909 L
.47719 .29298 L
.47812 .28545 L
.47905 .27029 L
.47998 .25006 L
.48092 .22722 L
.48185 .203
--- End offending input ---

The code I wrote generates nine postscript files, all done the same
way with similar complexity (no bitmaps, just 21 plots of 1024 joined
points each) and resulting from the same code.  Seven print fine,
one prints, but has a small glitch, and the other gives the above 
error.  I'm stumped.

Also, the man page for psfix (for AIX) says that it uses Courier
font for everything, and indeed that's how things come out.  Courier
isn't my favorite font; is there any way to replace it with something
nicer?  I understand the issues regarding proportional spaced fonts in
graphics, but Courier isn't the only fixed-pitch font.

Thanks for any tips!  (Please cc: mail also)

----------------------------------------------------
  John Pitney          pitney at uiuc.edu             
  http://www.physics.uiuc.edu/~pitney            


  • Prev by Date: Re: Break a List into Individual Elements?
  • Next by Date: Re: Programming: Replace Heads
  • Previous by thread: Re: ReadList problems in NEXTStep, version 2.2 for NEXT
  • Next by thread: plot with multiple y axes (eg)