public class XYPlot extends java.lang.Object implements Result, java.lang.Iterable<XYPlot.Curve>
XYPlot.Curve
s, meant for chart
generation.Modifier and Type | Class and Description |
---|---|
class |
XYPlot.Curve
Curve on this plot.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<XYPlot.Curve> |
curves
Curves on this plot.
|
protected java.lang.String |
labelx
Label of X axis
|
protected java.lang.String |
labely
Label of Y axis
|
protected double |
maxx
Minimum and maximum for X axis
|
protected double |
maxy
Minimum and maximum for Y axis
|
protected double |
minx
Minimum and maximum for X axis
|
protected double |
miny
Minimum and maximum for Y axis
|
protected static double |
THRESHOLD
Simplification threshold
|
Constructor and Description |
---|
XYPlot()
Constructor.
|
XYPlot(java.lang.String labelx,
java.lang.String labely)
Constructor with labels
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabelx()
Get label of x axis
|
java.lang.String |
getLabely()
Get label of y axis
|
java.lang.String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
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()
A short name for the result, useful for file names.
|
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.
|
protected static final double THRESHOLD
protected java.util.ArrayList<XYPlot.Curve> curves
protected java.lang.String labelx
protected java.lang.String labely
protected double minx
protected double maxx
protected double miny
protected double maxy
public XYPlot(java.lang.String labelx, java.lang.String labely)
labelx
- Label for X axislabely
- Label for Y axispublic XYPlot()
public XYPlot.Curve makeCurve()
public XYPlot.Curve makeCurve(int color)
color
- Color numberpublic XYPlot.Curve makeCurve(int color, int size)
color
- Color numbersize
- Expected sizepublic java.lang.String getLabelx()
public java.lang.String getLabely()
public double getMinx()
public double getMaxx()
public double getMiny()
public double getMaxy()
public java.util.Iterator<XYPlot.Curve> iterator()
iterator
in interface java.lang.Iterable<XYPlot.Curve>
public java.lang.String getLongName()
Result
getLongName
in interface Result
public java.lang.String getShortName()
Result
getShortName
in interface Result
Copyright © 2019 ELKI Development Team. License information.