graph new - part-cw/lambdanative GitHub Wiki
(graph-new w h . s)
Create a graph of the given dimension in points. Use a scale of 1.0 for the initial graph unit to be inches. Using any other number scales the unit accordingly. For example, using 1/2.54 will allow the use of centimeters as the initial unit.
| Parameter | Description |
|---|---|
| g | graph context |
| w | width of graph in points |
| h | height of graph in points |
| s | optional scale |
Example
(define g (graph-new 430 320))