|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--atropos.plot.GnuPlot
This class implements a customized gnuplot plotting capability.
This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Constructor Summary | |
GnuPlot(java.lang.String d,
java.lang.String gf,
java.lang.String df,
java.lang.String n,
boolean On)
Set the initial parameters for the plot files. |
Method Summary | |
void |
plot(java.lang.String value)
Record a plot value. |
java.lang.String |
plotCommand()
Builds the plot command for the gnuplot file. |
void |
setLineTitle(java.lang.String lt)
Set the line title option within the gnu plot statement. |
void |
setNode(java.lang.String n)
Set the node name. |
void |
setOutput(java.lang.String o)
Set the output file name. |
void |
setTerminal(java.lang.String t)
Set the terminal type for the gnuplot output. |
void |
setTitle(java.lang.String t)
Set the overall plot title. |
void |
setUsing(java.lang.String u)
Set the "using" option within the gnu plot statement. |
void |
setWith(java.lang.String w)
Set the "with" option in the gnu plot command. |
void |
setXlabel(java.lang.String x)
Set the graph X label. |
void |
setYlabel(java.lang.String y)
Set the graph Y label. |
void |
setZlabel(java.lang.String z)
Set the graph Z label. |
java.lang.String |
splotCommand()
Builds the plot command for the gnuplot file. |
java.lang.String |
toString()
Returns the complete gnuplot filename and data filename. |
void |
writeGnuPlot()
Write the gnuplot file. |
void |
writeGnuSplot()
Write the gnuplot file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GnuPlot(java.lang.String d, java.lang.String gf, java.lang.String df, java.lang.String n, boolean On)
d
- The directory for plot files.gf
- The gnu plot file name.df
- The data file name.n
- The node name.Method Detail |
public java.lang.String plotCommand()
public java.lang.String splotCommand()
public void writeGnuPlot()
public void writeGnuSplot()
public void setNode(java.lang.String n)
n
- The node for this plot. Used to name the file.public void setTitle(java.lang.String t)
t
- The overall graph title.public void setXlabel(java.lang.String x)
x
- The X label for this graph.public void setYlabel(java.lang.String y)
y
- The Y label for this graph.public void setZlabel(java.lang.String z)
z
- The Z label for this graph.public void setOutput(java.lang.String o)
o
- The output file for this graph.public void setTerminal(java.lang.String t)
t
- The terminal type for this graph. Usually postscript.public void setUsing(java.lang.String u)
u
- The format of the data in the datafile. Usually "%f %f".public void setLineTitle(java.lang.String lt)
lt
- The title of the line in the graph.public void setWith(java.lang.String w)
w
- The type of line to draw. Usually "linespoints".public java.lang.String toString()
toString
in class java.lang.Object
public void plot(java.lang.String value)
Object
- The measured value to be recorded. Should be in form of
X Y, or X Y Z.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |