public class Graph extends java.util.ArrayList<Plot>
For single plots, better have a look at Plot objects and GNUPlot.addPlot() command
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
NL |
Constructor and Description |
---|
Graph()
Create a new graph object
|
Modifier and Type | Method and Description |
---|---|
void |
addPlot(Plot plot)
Add a new plot to this plot group.
|
Axis |
getAxis(java.lang.String axisname)
Get one of the available Axis, in order to set some parameters on it.
|
LayoutMetrics |
getMetrics()
Get the positioning and size of this graph object
|
protected java.lang.String |
getPlotCommand()
Get the actual gnuplot command to initiate the plot.
|
void |
setMetrics(float x,
float y,
float width,
float height)
Set the position and size of thie graph object, relative to a 0,0-1,1
page
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
public Axis getAxis(java.lang.String axisname)
axisname
- The name of the Axis. It is usually "x", "y", "z"public void addPlot(Plot plot)
plot
- The given plot.public void setMetrics(float x, float y, float width, float height)
x
- horizontal positiony
- vertical positionwidth
- width of this graphheight
- of this graphpublic LayoutMetrics getMetrics()
protected java.lang.String getPlotCommand()