Authors
- Riccardo Mottola
-
Copyright: (C) 2011-2017 Free Software Foundation
- Declared in:
- OKCartesius.h
The OKCartesius class is meant to plot x-y data, e.g.
like a y=f(x) function on a Carthesian plane.
Data is represented as an array of NSPoints.
The engine can plot one or two curves in different
colors on the same plane with the same scale.
Instance Variables
Method summary
- (void)
setAxisColor: (NSColor*)color;
graph background color
- (void)
setBackgroundColor: (NSColor*)color;
sets graph background color
- (void)
setCurve1Color: (NSColor*)color;
sets color of curve 1
- (void)
setCurve2Color: (NSColor*)color;
sets color of curve 2
- (void)
setVisibleXUnits: (float)units;
sets visible part of X in units
- (void)
setVisibleYUnits: (float)units;
sets visible part of Y in units
Instance Variables for OKCartesius Class
@protected NSColor* axisColor;
Description forthcoming.
@protected NSColor* backgroundColor;
Description forthcoming.
@protected NSMutableArray* curve1;
array of NSPoints in NSValues
@protected NSColor* curve1Color;
Description forthcoming.
@protected NSMutableArray* curve2;
array of NSPoints in NSValues
@protected NSColor* curve2Color;
Description forthcoming.
@protected OKQuadrantPositioning quadrantPositioning;
Description forthcoming.
@protected float visibleXUnits;
Description forthcoming.
@protected float visibleYUnits;
Description forthcoming.
typedef enum ... OKQuadrantPositioning;
Defines the quadrants plotted.
- OKQuadrantCentered
-
All quadrants visible, origin is placed in the middle
- OKQuadrantI
-
Quadrant I
- OKQuadrantII
-
Quadrant II
- OKQuadrantIII
-
Quadrant III
- OKQuadrantIV
-
Quadrant IV
- OKQuadrantAuto
-
Automatic placement. E.g. Quadrant 3 and 4 are
not visible, only y-positive values are displayed