Changeset 38674 in project


Ignore:
Timestamp:
05/02/20 03:23:48 (7 months ago)
Author:
Kon Lovett
Message:

rel 1.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/slib-charplot

    r38382 r38674  
    3434current-output-port at plot time.
    3535
    36 ; {{DIMS}} : {{(or #f (list exact-integer exact-integer))}} ; (Height-rows Width-columns), default {{#f}}.
     36; {{DIMS}} : {{(or #f (list exact-integer exact-integer))}} ; (Height-rows Width-columns), default {{#f}}
    3737
    3838The left-margin effects the width consumed. The effective minimum dimensions
     
    4545<procedure>(plot-left-margin [WID]) -> exact-integer</procedure>
    4646
    47 ; {{WID}} : {{(or #f exact-integer)}} ; Width-columns, initial {{12}}, with default {{2}}.
     47; {{WID}} : {{(or #f exact-integer)}} ; Width-columns, initial {{12}}, default {{2}}
    4848
    4949{{2}} is the the minimum value.
     
    7878===== plot
    7979
    80 <procedure>(plot COORDS X-LABEL Y-LABEL [HISTOGRAM?])</procedure>
     80<procedure>(plot COORDS [X-LABEL [Y-LABEL [HISTOGRAM?]]])</procedure>
    8181
    8282{{COORDS}} is an array, list or vector of coordinates, lists of x and y coordinates.
     
    8484
    8585; {{COORDS}} : {{(or array list vector)}} ; coordinate data elements
    86 ; {{X-LABEL}} : {{string}} ; x axis label.
    87 ; {{Y-LABEL}} : {{string}} ; y axis label.
    88 ; {{HISTOGRAM?}} : {{boolean}} ; line or filled graph.
     86; {{X-LABEL}} : {{string}} ; x axis label, default {{""}}
     87; {{Y-LABEL}} : {{string}} ; y axis label, default {{""}}
     88; {{HISTOGRAM?}} : {{boolean}} ; line or filled graph, default {{#f}}
    8989
    9090The elements of a {{list}} are of the form {{(X Y1 ... Yn)}}, where {{(< 0
     
    104104* {{((0 12 21) (1 21 12))}}
    105105
    106 <procedure>(plot FUNC X1 X2 [NPTS])</procedure>
     106<procedure>(plot FUNC [X1 [X2 [NPTS]]])</procedure>
    107107
    108108Plots the function of the single-argument {{FUNC}} over the range {{X1}} to
     
    110110the number of points to evaluate func at.
    111111
    112 ; {{FUNC}}  : {{(number -> float)}} ; function to plot.
    113 ; {{X1}} : {{number}} ; plot range start.
    114 ; {{X2}} : {{number}} ; plot range end.
    115 ; {{NPTS}} : {{exact-integer}} ; number of points to evaluate {{FUNC}}, default {{64}}.
     112; {{FUNC}}  : {{(number -> float)}} ; function to plot
     113; {{X1}} : {{number}} ; plot range start, default {{0}}
     114; {{X2}} : {{number}} ; plot range end, default {{1}}
     115; {{NPTS}} : {{exact-integer}} ; number of points to evaluate {{FUNC}}, default {{64}}
    116116
    117117===== histograph
     
    122122or list {{DATA}}. {{LABEL}} is a string.
    123123
    124 ; {{DATA}} : {{(or list vector)}} ; elements are {{number}}.
    125 ; {{LABEL}} : {{string}} ; plot label.
     124; {{DATA}} : {{(or list vector)}} ; elements are {{number}}
     125; {{LABEL}} : {{string}} ; plot label
    126126
    127127
     
    143143=== Version history
    144144
     145; 1.1.0 : {{plot}} labels & range optional.
    145146; 1.0.3 : {{plot}} accepts a {{SRFI-63}} {{array}}.
    146147; 1.0.0 : C5 release.
Note: See TracChangeset for help on using the changeset viewer.