|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpapaya.Visuals
papaya.BoxPlot
public class BoxPlot
BoxPlot class
Field Summary | |
---|---|
float |
bottomBound
Specifies the space on the bottom, between the plot area and the bounding rectangle. |
boolean |
drawAxes
Specifies whether to draw the axes |
boolean |
drawRectangle
Specifies whether to draw the bounding rectangle around the plot. |
float |
leftBound
Specifies the space on the left between the plot area, and the bounding rectangle. |
float |
rightBound
Specifies the space on the right betweent the plot area, and the bounding rectangle. |
float |
topBound
Specifies the space on the top, between the plot area and the bounding rectangle. |
Fields inherited from class papaya.Visuals |
---|
bgColor |
Fields inherited from interface papaya.PapayaConstants |
---|
BASELINE, big, biginv, BOTTOM, CENTER, CORNER, FONTNAME, GRAY, INDEX_NOT_FOUND, INDICES_NOT_FOUND, LEFT, LOGPI, MACHEP, MAXGAM, MAXLOG, MINLOG, RIGHT, SQRTH, SQTPI, STROKEWEIGHT, TEXTSIZE, TOP |
Constructor Summary | |
---|---|
BoxPlot(PApplet _theParent,
float _plotLeft,
float _plotTop,
float _plotWidth,
float _plotHeight)
|
Method Summary | |
---|---|
void |
drawBoxPlot(String[] _labels,
float _sWeight,
int _fColor)
Plot the box plots. |
float[][] |
getData()
|
void |
setData(float[][] _fiveNumArr,
float _minVal,
float _maxVal)
Sets the data to be plotted. |
Methods inherited from class papaya.Visuals |
---|
drawAxes, drawRect, drawRect, getBottom, getHeight, getLeft, getRight, getTop, getWidth, horizLine, legendHoriz, legendVert, line, mapXData, mapXData, mapYData, mapYData, setBackgroundColor, setHeight, setLeft, setTop, setupFont, setupFont, setWidth, vertLine, writeLabels, writeLabels, writeLabels, writeLabels, writeLabels, writeTitle, xLabels, xLabels, xTicks, yLabels, yLabels, YLines, yTicks |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean drawRectangle
public boolean drawAxes
public float leftBound
public float rightBound
public float topBound
public float bottomBound
Constructor Detail |
---|
public BoxPlot(PApplet _theParent, float _plotLeft, float _plotTop, float _plotWidth, float _plotHeight)
Method Detail |
---|
public void setData(float[][] _fiveNumArr, float _minVal, float _maxVal)
_fiveNumArr
- array of five number box plot summaries
with each row corresponding to a given data set. See Descriptive.tukeyFiveNum(float[])
for more info._minVal
- the minimum value to show in the plot_maxVal
- the maximum value to show in the plotpublic float[][] getData()
public void drawBoxPlot(String[] _labels, float _sWeight, int _fColor)
_labels
- labels for the box plot_sWeight
- the stroke weight to use for the lines._fColor
- the fill color for the boxplots
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |