public class ASCIIGraph extends Object
| Modifier and Type | Method and Description |
|---|---|
static ASCIIGraph |
fromSeries(double[] series)
Creates an ASCIIGraph instance from the given series.
|
String |
plot()
Plots the graph and returns it as a String.
|
ASCIIGraph |
withNumRows(int numRows)
Determines the number of rows in the graph.
|
ASCIIGraph |
withTickFormat(DecimalFormat tickFormat)
Determines how the ticks will be formatted.
|
ASCIIGraph |
withTickWidth(int tickWidth)
Determines the minimum width of the ticks on the axis.
|
public static ASCIIGraph fromSeries(double[] series)
series - The series of data, where index is the x-axis and value is the y-axis.public ASCIIGraph withNumRows(int numRows)
numRows - The number of rows desired. If 0, uses the default.public ASCIIGraph withTickWidth(int tickWidth)
tickWidth - The width of the ticks on the axis.public ASCIIGraph withTickFormat(DecimalFormat tickFormat)
tickFormat - The format of the ticks.public String plot()
Copyright © 2017. All rights reserved.