minor change to cllib/base.lisp, changes to gnuplot.lisp
rif <[email protected]> Wed, 04 Jun 2003 12:48:54 -0400
| Newsgroups | gmane.lisp.clocc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi.
I'm new to this list, so I'm not sure what the right format for
suggesting/making changes is. However, I was interested in making
some improvements to gnuplot for my own use.
1. Small change to base.lisp. I suggest changing
(defcustom *datadir* pathname
(mk-path (user-homedir-pathname) :directory '(:relative "data"))
to
(defcustom *datadir* pathname
(truename (mk-path (user-homedir-pathname) :directory '(:relative "data"))))
Under CMUCL, for the original definition, we get a path of the form
#p"home:data/", while with the truename, we get #p"/home/rif/data/"
This difference is important when we want to use filenames derived
from the path in external programs. For instance, as currently
implemented, under CMUCL, if I tell the gnulot interface to generate a
gnuplot script file, this script file will attempt to put its output
in "home:/data/plot.ps", which will fail. (See comp.lang.lisp for
discussion on this).
2. I have made some (small) improvements to gnuplot.lisp --- I have
exposed the logscale argument to gnuplot, and I've "improved" the
use of the grid option so that either x, y, or both can be gridded
separately. I'd be happy to donate the changed file back if that
is wanted. I'm also planning on implementing some "higher-level"
functions on top of this, for making bar plots and ROC curves;
I'll probably put those in a separate file, but I'm also happy to
donate those.
Cheers,
rif
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.