Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to generate a PostScript file of a graph from Mathematica (Unix version) ?

0
10 Posted

How to generate a PostScript file of a graph from Mathematica (Unix version) ?

0

In Mathematica (Unix version), if you type Plot[Sin[x], {x,0,2Pi}] , you will get the graph shown on screen. To generate a PostScript file of this graph, you should type Display[ “MyGraph.math-ps”, Plot[Sin[x], {x,0,2Pi}] ] Then, a file named MyGraph.math-ps will be generated. However, this file is NOT a valid Postscript file since it contains lot of macros which can be read by Mathematica only. To make this Postscript file to be recognized by others, we need to use the psfix utility (comes with Mathematica) to fix it. For example kernel:/users/stf/keith> psfix MyGraph.math-ps > MyGraph.ps Then, a valid Postscript file called MyGraph.ps will be generated.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.