ScatterView2:
Filter:
MathLib/Classes (extension) | GUI > Accessories | Libraries > MathLib > ScatterViews

ScatterView2
ExtensionExtension

Plot a collection of points in 2D

Description

Plot a collection of points in 2D

Part of MathLib, a diverse library of mathematical functions.

Class Methods

.new

Arguments:

parent

Parent view or window

bounds

The bounds, a Rect

data

An array of [[x0,y0], [x1,y1], ...[xN,yN]]

specX

ControlSpec with min/max of the plotted range of dimension X

specY

ControlSpec with min/max of the plotted range of dimension Y

Instance Methods

.data

Set data array.

Arguments:

data

An array of [[x0,y0], [x1,y1], ...[xN,yN]]

.refresh

Refresh the view. You will need to call this after making any changes to data or settings.

.drawMethod

Get or set the shape that will be drawn for each point.

Arguments:

method

One of: [\fillRect, \fillOval, \lineTo]

.background

Get or set background-color

Examples

Authors

Till Bovermann, 2005.