[Maxima] color xfig output ?

Jaime E. Villate villate at fe.up.pt
Mon May 28 09:47:04 CDT 2007


On Mon, 2007-05-28 at 09:59 -0400, sen1 at math.msu.edu wrote:
>   Is it possible to produce a color plot output to xfig?
> 
> Actually, I need to place labels of different sizes at different
> points in a 2d plot.  If there is another way to do this, I would
> appreciate any hints. 
Hi Sheldon,
I have not used it in a long time (1), but "pstoedit" used to work fine
to transform postscript figures into xfig's format:

  Package: pstoedit
  Description: 
  pstoedit converts Postscript and PDF files to various editable
  vector graphic formats including tgif, xfig, PDF graphics, gnuplot
  format, idraw, MetaPost, GNU Metafile, PIC, Kontour and flattened
  PostScript.

You can save the postscript file obtained with Maxima, transform it
into xfig's format using pstoedit, and edit it with xfig.

Regards,
Jaime

(1) I stopped using xfig when I discovered that it is very easy to
edit directly a Postscript file, with a little knowledge of Postscript:
I open the file with gv, move the cursor to the place where I want the
label, read its coordinates given by gv (for instance, 123, 245), and
write something such as this before the "showpage" at the end of the
postscript file:
   123 245 moveto
   0.1 0.3 0.2 setrgbcolor
   /Helvetica findfont 14 scalefont setfont
   (Label 1) show



More information about the Maxima mailing list