Subject: Colored postscript graphics in imaxima mode
From: Mario Rodriguez
Date: Thu, 12 May 2011 14:58:49 -0400
Hello,
Colored surfaces in embedded graphics (wxdraw and wxdraw3d) in emacs +
imaxima are always rendered in gray levels, since the current palette is
ignored. The second image in this site is an example:
http://sites.google.com/site/imaximaimath/tutorial-of-imaxima/tutorial-of-imaxima-inline-graph
If in the definition of function $wxdraw (imaxima.lisp), we substitute
((mequal simp) $terminal $eps)
by
((mequal simp) $terminal $eps_color)
something like
wxdraw3d(
enhanced3d = [x-z/10,x,y,z],
palette = [3,6,-16],
explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3))$
should plot a colored surface. See screenshot:
http://riotorto.users.sourceforge.net/gnuplot/func3d/emacs_color.png
I'm an occasional user of emacs and I don't know if there is any special
reason for using the eps terminal instead of eps_color. If not, I can
commit this change.
--
Mario