be.hogent.tarsos.util
Class SimplePlot
java.lang.Object
be.hogent.tarsos.util.SimplePlot
public final class SimplePlot
- extends java.lang.Object
Method Summary |
void |
addData(double x,
double y)
|
void |
addData(int set,
double x,
double y)
|
void |
addData(int set,
double x,
double y,
boolean impulses)
|
void |
addData(int set,
Histogram histogram)
|
void |
addData(int set,
Histogram histogram,
int displacement)
|
void |
addData(int set,
KernelDensityEstimate kde)
|
void |
addLegend(int set,
java.lang.String name)
|
void |
addXTick(java.lang.String label,
double position)
|
void |
addYTick(java.lang.String label,
double position)
|
void |
pitchClassHistogramify()
Sets the x range from 0 to 1200, names the axes. |
void |
save()
|
void |
save(java.lang.String fileName)
|
void |
setSize(int width,
int height)
|
void |
setTitle(java.lang.String title)
|
void |
setXLabel(java.lang.String label)
Sets the label for the x axis. |
void |
setXRange(double startingValue,
double stoppingValue)
|
void |
setYLabel(java.lang.String label)
Sets the label for the y axis. |
void |
setYRange(double d,
double e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePlot
public SimplePlot(java.lang.String plotTitle)
SimplePlot
public SimplePlot()
setSize
public void setSize(int width,
int height)
addData
public void addData(int set,
double x,
double y)
addData
public void addData(int set,
double x,
double y,
boolean impulses)
addData
public void addData(int set,
Histogram histogram,
int displacement)
addData
public void addData(int set,
Histogram histogram)
addData
public void addData(int set,
KernelDensityEstimate kde)
addData
public void addData(double x,
double y)
save
public void save()
save
public void save(java.lang.String fileName)
pitchClassHistogramify
public void pitchClassHistogramify()
- Sets the x range from 0 to 1200, names the axes.
addXTick
public void addXTick(java.lang.String label,
double position)
addYTick
public void addYTick(java.lang.String label,
double position)
setTitle
public void setTitle(java.lang.String title)
addLegend
public void addLegend(int set,
java.lang.String name)
setXRange
public void setXRange(double startingValue,
double stoppingValue)
setYRange
public void setYRange(double d,
double e)
setXLabel
public void setXLabel(java.lang.String label)
- Sets the label for the x axis.
- Parameters:
label
- The label to use.
setYLabel
public void setYLabel(java.lang.String label)
- Sets the label for the y axis.
- Parameters:
label
- The label to use.