![]() Next PLT Scheme v4.1.4 prev PLT Scheme v4.1.3 ![]() ![]() Thanks! I was about to code an interface to gnuplot, and I see you’ve already done it. After that, it still errors on the gnuploy-hardcopy, which I presume means this is the wrong language. I can get it to execute with Essentials of Programming Languages 3rd language, but then I had to define add1 and build-list. Hi, perhaps this is a really stupid question, but which language was your code snippet written in? If I try and run it with DrScheme in ASL it throws an error on the require function. )))) ( list x ( log x ) ( * x ( log x )) ( expt x 2 ) ( expt 2 x ))))))) png output options ( define png ' ( png enhanced transparent font ( str arial ))) on screen plot ( gnuplot-set gplot ' ( title ( str "growth curves" ))) ( gnuplot-plot gplot #:range ' (() ( 1 1000 )) ( gnuplot-item data ' ( using ( seq: 1 1 ) title ( str "x" ) with line )) ( gnuplot-item data ' ( using ( seq: 1 2 ) title ( str "log(x)" ) with line )) ( gnuplot-item data ' ( using ( seq: 1 3 ) title ( str "xlog(x)" ) with line )) ( gnuplot-item data ' ( using ( seq: 1 4 ) title ( str "x^2" ) with line )) ( gnuplot-item data ' ( using ( seq: 1 5 ) title ( str "2^x" ) with line ))) replot to png ( gnuplot-hardcopy gplot "/tmp/grow.png" #:term png ) redo with logscale ( gnuplot-set gplot ' ( logscale y )) ( gnuplot-replot gplot ) ( gnuplot-hardcopy gplot "/tmp/loggrow.png" #:term png ) ( require ( planet vyzo/gnuplot )) ( define gplot ( gnuplot-spawn )) ( define data ( gnuplot-data ( build-list 90 ( lambda ( x ) ( let (( x ( add1 ( / x 10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |