Module: plot-extend.ss

plot-extend.ss allows you to create your own constructors, further customize the appearance of the plot windows, and in general extend the package.

3.1  2d-view%

Provides an interface to drawing 2dplots. Some methods call low-level functions while others are emulated in scheme.

3.2  3d-view%

Provides an interface to drawing 3d plots.

3.3  define-plot-type

Macro used to create new constructors. It is easiest to explain with an example, so here is an implementation of a simple line constructor:

(define-plot-type line
   func 2dplotview (x-min x-max) ((samples 150) (color 'red) (width 1))
   (send* 2dplotview
     (set-line-color color) (set-line-width width)
     (plot-line (map (lambda (x) (vector x (func x)))
                     (x-values samples x-min x-max)))))