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

ScatterView2 : Object
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

ScatterView2.new(parent, bounds, data, specX, specY)

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

Inherited class methods

Instance Methods

.data = 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

.drawMethod = value

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

Arguments:

(method)

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

.background

.background = value

Get or set background-color

Inherited instance methods

Undocumented instance methods

.action

.action = value

.canFocus

.canFocus = state: false

.colorFunc

.colorFunc = value

.itemSize

.itemSize = value

.mouseDownAction

.mouseDownAction = value

.mouseMoveAction

.mouseMoveAction = value

.mouseOverAction

.mouseOverAction = func

.mouseUpAction

.mouseUpAction = value

.plot

.select(indices)

.selectModes

.selectModes = value

.selectRegion

.selectRegion = value

.selection

.selectionMode

.selectionMode = value

.visible

.visible = bool

Examples

Authors

Till Bovermann, 2005.