User Tools

Site Tools


blog:export_maple_figure_to_eps_file

This is an old revision of the document!


Export maple figure to eps file

Right clicking on top of the figure using the mouse and choosing the export option does not satisfy me as the figure produced is mathematically ugly and gets rotated. Also, color information is lost.

The solution works with the plotsetup function:

plotsetup(postscript, plotoutput=`c:\\temp\\mapleplot.eps`, plotoptions=`color,portrait,height=350,width=350`);
plot(x^2,x=-5..5,axes=boxed);
plotsetup(default);

The first line of the command above will set up maple to create an output file called “square_of_x.eps” in the directory where this maple file located. The second line is the maple command to produce the figure. And the last command is to set up everything back.

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   __  ___  _   __   __   _____   ___ 
  /  |/  / | | / /  / /  / ___/  / _ \
 / /|_/ /  | |/ /  / /__/ /__   / // /
/_/  /_/   |___/  /____/\___/  /____/
 
blog/export_maple_figure_to_eps_file.1245570772.txt.gz · Last modified: 2009-06-21 09:52 by brb