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

ScatterView : 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

ScatterView.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

Get or 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

Set the shape that will be drawn for each point.

Arguments:

(method)

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

.symbolColor

.symbolColor = value

Color of the shape plotted for each point

.isHighlight

.isHighlight = value

Switch for highlight on/off

.highlightItem

.highlightItem = item

Set item to be highlighted. Index could be either index or array of indices.

.highlightRange(start, end)

Highlight multiple points

Arguments:

start

Integer index in data array

end

Integer index in data array

.highlightColor

.highlightColor = value

Set color of highlighted item

.highlightSize

.highlightSize = value

Set highlight extend

.background

.background = color

set background-color

Inherited instance methods

Undocumented instance methods

.canFocus

.canFocus = state: false

.drawAxis

.drawAxis = value

.drawValues

.drawValues = value

.highlightItemRel = val

.highlightRangeRel(start, end)

.plot

.resize

.resize = resize

.symbolSize

.symbolSize = point

.visible

.visible = bool

.xAxisName

.xAxisName = value

.yAxisName

.yAxisName = value

Examples

Authors

Till Bovermann, 2005.