Documentation Set for Swarm 2.2
Prev | Reference VIII. Gui Library | Next

# Graph

## Name

Graph -- A time series graph tool.

## Description

A time series graph tool, based on BLT's graph widget. Graph currently implements just a basic graph with multiple datasets, but should eventually support scaling and scrolling. For each Graph you create one or many GraphElements, one per dataset to plot. GraphElements can be configured for appearance, and data can be added to the element to draw.

## Protocols adopted by Graph

ArchivedGeometryWidget CREATABLE

## Methods

### Phase: Using

- - (void)setRangesXMin: (double)minx Max: (double)maxx YMin: (double)miny Max: (double)maxy
  Sets the ranges for the graph. Turns off autoscaling.

- - (void)setRangesYMin: (double)miny Max: (double)maxy
  Sets the Y ranges for the graph. Turns off autoscaling.

- - (void)setRangesXMin: (double)minx Max: (double)maxx
  Sets the X ranges for the graph. Turns off autoscaling.

- - (void)setScaleModeX: (BOOL)xs Y: (BOOL)ys
  Whether to autoscale every timestep or instead to jump scale.

- - (id <GraphElement>)createElement
  Builds a new GraphElement to plot data with.

- - setAxisLabelsX: (const char *)xl Y: (const char *)yl
  Set the axis labels for the graph.

- - setTitle: (const char *)title
  Set the title for the graph.

Prev | Home | Next
Frame | Up | GraphElement