Raul Miller <[email protected]> writes:
> Also, once you have it working, maybe that experience can be useful in
> helping us (the j community) in fixing the script?
In addons/graphics/gnuplot/gnuplot.ijs I changed the getbinfiles verb
to:
getbinfiles=: 3 : 0
res=. '';''
if. 0 ~: 4!:0 <'GNUPLOTBIN' do. return. end.
if. 0 = #GNUPLOTBIN do. return. end.
NB. removed bin=. jhostpath GNUPLOTBIN
NB. removed bin=. bin, PATHSEP_j_ -. {: bin
bin=. GNUPLOTBIN, '\' NB. added
exe=. bin,'wgnuplot.exe'
ini=. bin,'gnuplot.ini'
exe=. (fexist exe) # exe
ini=. (fexist ini) # ini
exe;ini
)
(As this is essentially to be used on windows, I explicitly use '\'.
If the GNUPLOTLIB already ends with \, it's just doubled, that should
not cause a trouble.)
In my program I then set (system-dependent)
GNUPLOTBIN_pgnuplot_=: 'C:\Program Files\gnuplot\bin\'
Then it seems gnuplot is started as expected.
Best regards
Ruda
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm