Package elki.math.geometry
Class XYPlot
- java.lang.Object
-
- elki.math.geometry.XYPlot
-
- All Implemented Interfaces:
java.lang.Iterable<XYPlot.Curve>
public class XYPlot extends java.lang.Object implements java.lang.Iterable<XYPlot.Curve>
An XYCurve is an ordered collection of 2dXYPlot.Curve
s, meant for chart generation.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
XYPlot.Curve
Curve on this plot.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<XYPlot.Curve>
curves
Curves on this plot.protected java.lang.String
labelx
Label of X axisprotected java.lang.String
labely
Label of Y axisprotected double
maxx
Minimum and maximum for X axisprotected double
maxy
Minimum and maximum for Y axisprotected double
minx
Minimum and maximum for X axisprotected double
miny
Minimum and maximum for Y axisprotected static double
THRESHOLD
Simplification threshold
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLabelx()
Get label of x axisjava.lang.String
getLabely()
Get label of y axisjava.lang.String
getLongName()
double
getMaxx()
Maximum on x axis.double
getMaxy()
Maximum on y axis.double
getMinx()
Minimum on x axis.double
getMiny()
Minimum on y axis.java.lang.String
getShortName()
java.util.Iterator<XYPlot.Curve>
iterator()
XYPlot.Curve
makeCurve()
Make a new curve.XYPlot.Curve
makeCurve(int color)
Make a new curve with desired color.XYPlot.Curve
makeCurve(int color, int size)
Make a new curve with desired color.
-
-
-
Field Detail
-
THRESHOLD
protected static final double THRESHOLD
Simplification threshold- See Also:
- Constant Field Values
-
curves
protected java.util.ArrayList<XYPlot.Curve> curves
Curves on this plot.
-
labelx
protected java.lang.String labelx
Label of X axis
-
labely
protected java.lang.String labely
Label of Y axis
-
minx
protected double minx
Minimum and maximum for X axis
-
maxx
protected double maxx
Minimum and maximum for X axis
-
miny
protected double miny
Minimum and maximum for Y axis
-
maxy
protected double maxy
Minimum and maximum for Y axis
-
-
Method Detail
-
makeCurve
public XYPlot.Curve makeCurve()
Make a new curve.- Returns:
- Curve
-
makeCurve
public XYPlot.Curve makeCurve(int color)
Make a new curve with desired color.- Parameters:
color
- Color number- Returns:
- Curve
-
makeCurve
public XYPlot.Curve makeCurve(int color, int size)
Make a new curve with desired color.- Parameters:
color
- Color numbersize
- Expected size- Returns:
- Curve
-
getLabelx
public java.lang.String getLabelx()
Get label of x axis- Returns:
- label of x axis
-
getLabely
public java.lang.String getLabely()
Get label of y axis- Returns:
- label of y axis
-
getMinx
public double getMinx()
Minimum on x axis.- Returns:
- Minimum on X
-
getMaxx
public double getMaxx()
Maximum on x axis.- Returns:
- Maximum on X
-
getMiny
public double getMiny()
Minimum on y axis.- Returns:
- Minimum on Y
-
getMaxy
public double getMaxy()
Maximum on y axis.- Returns:
- Maximum on Y
-
iterator
public java.util.Iterator<XYPlot.Curve> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<XYPlot.Curve>
-
getLongName
public java.lang.String getLongName()
-
getShortName
public java.lang.String getShortName()
-
-