Changeset 37125 in project


Ignore:
Timestamp:
01/25/19 19:12:35 (5 months ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [89.128.162.237]: Adapt to v0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/gnuplot-pipe

    r37124 r37125  
    2626</enscript>
    2727
     28All gnuplot-pipe procedures calls must be wrapped by
     29
     30<enscript highlight="scheme">
     31(gp:call/gnuplot
     32 ...)
     33</enscript>
     34
     35The default [[http://gnuplot.info/|Gnuplot]] executable name is
     36{{gnuplot}}. A different executable name (signaled by a warning) may
     37cause the interpreter to crash.
     38
    2839=== Generic pipe to Gnuplot
    2940
    3041The procedure {{gp:send}} is a simple pipe to gnuplot. Pass arbitrary
    31 commands as strings.
     42command as string.
    3243
    3344<enscript highlight="scheme">
     
    3647 (gp:send "plot sin(x)"))
    3748</enscript>
    38 
    39 Note that all gnuplot-pipe procedures calls must be wrapped by
    40 {{gp:call/gnuplot}}.
    4149
    4250=== Plot 2D data and save to file
     
    155163;          ^
    156164;          line 0: invalid command
    157        
     165
    158166(define stdout (current-output-port))
    159167(gp:call/gnuplot
    160168 (display "foo" stdout))
    161 ; foo   
    162 </enscript>
    163 
    164 == Issues
    165 
    166 * The default [[http://gnuplot.info/|Gnuplot]] executable name is
    167   {{gnuplot}}. A different executable name (signaled by a warning) may
    168   cause the interpreter to crash.
    169 
    170 * As of CHICKEN Scheme 4.13.0, the compiler issues a warning when
    171   calling {{gp:call/gnuplot}} (in procedure call to
    172   {{call-with-output-pipe}} due to wrong argument type). This is
    173   simply due to a bug in the type-information database for core
    174   CHICKEN library functions and '''it can safely be ignored'''. See
    175   the [[https://gitlab.com/montanari/gnuplot-pipe|source code]] README
    176   for more information.
     169; foo
     170</enscript>
    177171
    178172== Version History
    179173
     174; 0.3 : Improve gp:call/gnuplot.
    180175; 0.2 : Fix multiple plots. Remove unnecessary dependence.
    181176; 0.1 : Initial release.
     
    213208<style>}} specifications (see the Gnuplot manual or launch {{gnuplot
    214209-e "help plot"}} for more information). List of numbers {{list1}},
    215 {{list2}}, ... are passed to Gnuplot as inline data.
     210{{list2}}, ... are passed to Gnuplot as inline data columns.
    216211
    217212To draw multiple sets of data, a plot {{element}} can be also given in
Note: See TracChangeset for help on using the changeset viewer.