Re: Newby: filing graphics in MMA-WIN
- To: mathgroup at smc.vnet.net
- Subject: [mg4657] Re: Newby: filing graphics in MMA-WIN
- From: "Paul J. Hinton" <paulh>
- Date: Thu, 22 Aug 1996 03:55:10 -0400
- Organization: Wolfram Research, Inc.
- Sender: owner-wri-mathgroup at wolfram.com
Harald Berndt wrote: > > [ Clipped from: comp.soft-sys.math.mathematica ] > > fokko jan dijksterhuis wrote: >> >> I'm using Mathematica for Windows, version 2.1 (i think) and I want to >> file the postscript output to a real postscript file without the trouble >> of copying it to the clipboard and pasting it in another application. > > How about selecting the graphic you want in a .PS file, then "Print > Selection" and tell Windows to print to a PostScript file?! It doesn't work that easily. The PostScript generated for Mathematica graphics is a specialized dialect of PostScript, and it isn't suitable for export into other applications. Perhaps the most reliable means of creating PostScript files on the Windows platform is a two-step procedure: 1) Issue the following command to the Mathematica kernel Display["filename.mps",graphicsObject] This sends the Mathematica PostScript for a graphics object (graphicsObject) to a file called filename.mps. The graphics object may be a symbol that was set equal to some operation that creates a graphics object (e.g. Plot[ ], Plot3D[ ], ContourPlot[ ], etc.) or it could be a line reference (%23, for example). 2) From an MS-DOS prompt invoke the utility RASTERPS.EXE to convert the Mathematica PostScript into another format such as standard PostScript or Encapsulated PostScript. C:\WNMATH22> RASTERPS -FILE FILENAME.PS -FORMAT PS FILENAME.MPS This creates a standard PostScript format file of the graphics object with name FILENAME.PS. To create an Encapsulated Post Script file, replace the PS with EPS. RASTERPS.EXE does not come with the Windows version of Mathematica, but it can be downloaded free of charge from MathSource sites. See the webpage: http://www.mathsource.com/cgi-bin/MathSource/General/Systems/DOS/0203-634 You can also export a selected graphics cell as an Encapsulated Post Script file using the Export command on the file menu. Note that you may need to install a filter file before you can do this. An Encapsulated PostScript filter comes standard with Mathematica 2.2.3.2. -- P.J. Hinton Wolfram Research, Inc. Internet: paulh at wolfram.com Disclaimer: Opinions expressed herein are those of the author alone. ==== [MESSAGE SEPARATOR] ====