[clnuplot-devel] followup: specifying arbitrary output file location

Gary King gwking at metabang.com
Mon Feb 9 16:57:50 UTC 2009


Hi David (Alan?).

good idea. I'll add this sometime this week.


On Feb 9, 2009, at 11:05 AM, david thompson wrote:

> It would give users even more flexibility if they had the capability  
> not only to
> explicitly define the location of the gnuplot 'data' file (http://common-lisp.net/pipermail/clnuplot-devel/2009-February/000008.html 
> )
> but to also have the capability to
> explicitly specify the location of the rendered (graphical) version  
> of the chart/plot.
>
> Something like
>
> (defun fullname-rendered (plot type)
>   (let ((fullpath (fullpath plot)))
>     (namestring (make-pathname
>          ;; strip type info
>          :name (pathname-name fullpath)
>          :directory (pathname-directory fullpath)
>          :type type))))
>
> and then a modification of each 'set output' line for gnuplot (in  
> the various WRITE-PLOT definitions) to something like
>
>  (format out "set output '~A'~C"
>         (fullname-rendered plot "ps")
>         #\Linefeed))
>
> seems like it would do the trick...
>
> - Alan
> _______________________________________________
> clnuplot-devel mailing list
> clnuplot-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/clnuplot-devel

--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM * gwking on twitter





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/clnuplot-devel/attachments/20090209/f316e816/attachment.html>


More information about the Clnuplot-devel mailing list