There may be circumstances when it is desirable to specify the output location of the gnuplot file in a direct fashion (the current code uses ASDF to determine the output file location). The attached patch (hopefully...) allows the user to specify an arbitrary location for the gnuplot file output by WRITE-PLOT. Examples:<br>
<br>CLNUPLOT> (clnuplot:write-plot (clnuplot:make-plot <br> :bar <br> '((1 2) (2 2.5) (3 3.1) (4 3.4) (5 4.2)) <br> :linewidth 3.0 <br> :filename "bar123" <br> :pathdir "/tmp/"<br> :xlabel "Bin Number" <br>
:ylabel "Dance Partners" <br> :x-coord #'first <br> :y-coord #'second <br> :title "Bin Number versus Dance Partners" <br> :ymin 0.0) :postscript)<br>#<GNUPLOT {B5FE309}><br>CLNUPLOT> (fullpath #<GNUPLOT {B5FE309}>)<br>
#P"/tmp/bar123.data"<br><br><br>or<br><br><br>CLNUPLOT> (clnuplot:write-plot (clnuplot:make-plot <br> :bar <br> '((1 2) (2 2.5) (3 3.1) (4 3.4) (5 4.2)) <br> :linewidth 3.0 <br> :filename "bar123" <br>
:pathdir (make-pathname :directory '(:absolute "tmp"))<br> :xlabel "Bin Number" <br> :ylabel "Dance Partners" <br> :x-coord #'first <br> :y-coord #'second <br> :title "Bin Number versus Dance Partners" <br>
:ymin 0.0) :postscript)<br>#<GNUPLOT {B0A4D99}><br>CLNUPLOT> (fullpath #<GNUPLOT {B0A4D99}>)<br>#P"/tmp/bar123.data"<br><br><br><br>The original behavior of WRITE-PLOT seems to still be there:<br>
<br><br>CLNUPLOT> (clnuplot:write-plot (clnuplot:make-plot <br> :bar <br> '((1 2) (2 2.5) (3 3.1) (4 3.4) (5 4.2)) <br> :linewidth 3.0 <br> :filename "bar123" <br> :xlabel "Bin Number" <br>
:ylabel "Dance Partners" <br> :x-coord #'first <br> :y-coord #'second <br> :title "Bin Number versus Dance Partners" <br> :ymin 0.0) :postscript) <br>#<GNUPLOT {AC0DA99}><br>CLNUPLOT> (fullpath #<GNUPLOT {AC0DA99}>)<br>
#P"/root/.sbcl/site/clnuplot/plots/bar123.data"<br><br><br>- Alan<br>