Skip to content

Index of Module graph

Chris Petersen edited this page Oct 16, 2014 · 44 revisions

Module: graph

The graph module is a Scheme-based implementation of the public domain C-Graph vector plotting library. It is intended for generation of scientific graphs. The engine is designed to support multiple output backends. Currently only PDF is implemented.

Simple examples of usage can be found in modules/graph/examples.

Functions in this module:

Function Short Description
(graph? g) Return #t if argument is a graph, #f otherwise
[(graph-aorigin g x y)](Function 470) Sets page origin in inches
[(graph-axisenable g a n)](Function 471) Toggles rendering of axis and numbers
[(graph-box g x1 y1 x2 y2)](Function 472) Inserts a box with corners (x1,y1) and (x2,y2)
[(graph-circle g x y r)](Function 473) Inserts a circle at (x,y) of radius r
(graph-clear g) Clear elements in a graph context
[(graph-closepathstroke g)](Function 474) Closes current path and strokes it
[(graph-color g c)](Function 475) Sets the current pen color
[(graph-dash g t p)](Function 476) Sets the line type
[(graph-font g fn fs)](Function 477) Sets font for text rendering
[(graph-frame g)](Function 478) Draws an axis frame
[(graph-htextcenter g x y s)](Function 479) Draws centered horizontal text
[(graph-htextleft g x y s)](Function 480) Draws left-aligned horizontal text
[(graph-htextright g x y s)](Function 481) Draws right-aligned horizontal text
[(graph-line g x1 y1 x2 y2)](Function 482) Draw line between points
[(graph-linearstyle g p o d t l)](Function 483) Sets style of linear axes
[(graph-lineto g x y)](Function 484) Draw invisible line from current pen position
[(graph-linewidth g w)](Function 485) Sets the width of lines
[(graph-logstyle g n t d p l l10)](Function 486) Sets style of logarithmic axes
[(graph-marker g x y t s)](Function 487) Draws a marker
[(graph-mesh g)](Function 488) Draws a graph mesh
[(graph-moveto g x y)](Function 489) Moves pen position
(graph-new w h . s) Creates a new graph context
(graph-output g type . filename) Renders a graph
(graph-reset g) Resets a graph context
[(graph-rlineto g x y)](Function 491) Draws relative to current pen position
[(graph-rmoveto g x y)](Function 492) Moves relative to current pen position
[(graph-rorigin g x y)](Function 493) Sets origin relative to current origin
[(graph-setcoord g t)](Function 494) Selects active coordinate system
[(graph-solidbox g x1 y1 x2 y2)](Function 495) Draws a filled box
[(graph-solidcircle g x y r)](Function 496) Draws a filled circle
[(graph-solidtriangle g x1 y1 x2 y2 x3 y3)](Function 497) Draws a filled triangle
[(graph-stroke g)](Function 498) Strokes the current path
[(graph-triangle g x1 y1 x2 y2 x3 y3)](Function 499) Draws an open triangle
[(graph-vtextbottom g x y s)](Function 500) Draws vertical bottom-aligned text
[(graph-vtextcenter g x y s)](Function 501) Draws vertical centered text
[(graph-vtexttop g x y s)](Function 502) Draws vertical top-aligned text
[(graph-xaxis g)](Function 503) Draws an X axis
[(graph-xlabel g v)](Function 504) Sets the X axis label
[(graph-xlinear g sze min max ofs tic num)](Function 505) Creates a linear X axis
[(graph-xlog g sze min max ofs)](Function 506) Creates a logarithmic X axis
[(graph-yaxis g)](Function 507) Draws a Y axis
[(graph-ylabel g s)](Function 508) Sets the Y axis label
[(graph-ylinear g sze min max ofs tic num)](Function 509) Creates a linear Y axis
[(graph-ylog g sze min max ofs)](Function 510) Creates a logarithmic Y axis
Clone this wiki locally