public class JavaPlot extends GNUPlot
This object is not serializable, use GNUPlotParameters instead.
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaPlot.Key |
| Constructor and Description |
|---|
JavaPlot()
Create a new instance of JavaPlot, with the default parameters
|
JavaPlot(boolean isGraph3D)
Create a new instance of JavaPlot, using the default parameters.
|
JavaPlot(GNUPlotParameters par)
Create a new JavaPlot object with given parameters
|
JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term)
Create a new JavaPlot object with given parameters, gnuplot path and
terminal
|
JavaPlot(GNUPlotParameters par,
java.lang.String gnuplotpath,
GNUPlotTerminal term,
boolean isGraph3D)
Create a new JavaPlot object with given parameters, gnuplot path terminal
ans isGraph3D
|
JavaPlot(java.lang.String gnuplotpath)
Create a new JavaPlot object with a given gnuplot path
|
JavaPlot(java.lang.String gnuplotpath,
boolean isGraph3D)
Create a new instance of gnuplot, with a given path for gnuplot.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlot(DataSet set) |
void |
addPlot(double[][] points) |
void |
addPlot(float[][] points) |
void |
addPlot(int[][] points) |
void |
addPlot(long[][] points) |
void |
addPlot(java.lang.String function) |
void |
setKey(JavaPlot.Key position) |
void |
setTitle(java.lang.String title)
Set the graph Title
|
void |
setTitle(java.lang.String title,
java.lang.String font,
int size)
Set the graph title and the title font
|
addGraph, addPlot, getAxis, getCommands, getDebugger, getGNUPlotPath, getLayout, getPage, getParameters, getPlots, getPostInit, getPreInit, getTerminal, newGraph, newGraph3D, plot, set, setGNUPlotPath, setMultiTitle, setParameters, setPersist, setTerminalpublic JavaPlot()
throws GNUPlotException
GNUPlotException - If the gnuplot executable
is not found, this exception is thrown. Typically at this case there is
need to use a constructor which defines the gnuplot path.GNUPlot.GNUPlot()public JavaPlot(boolean isGraph3D)
throws GNUPlotException
isGraph3D - true if the default plot is Graph3DGNUPlotException - If the gnuplot executable
is not found, this exception is thrown. Typically at this case there is
need to use a constructor which defines the gnuplot path.GNUPlot.GNUPlot(boolean)public JavaPlot(java.lang.String gnuplotpath)
throws GNUPlotException
gnuplotpath - GNUPlotException - If the gnuplot executable
is not found, this exception is thrown. It means that the provided path
for gnuplot is not valid.GNUPlot.GNUPlot(String)public JavaPlot(java.lang.String gnuplotpath,
boolean isGraph3D)
throws GNUPlotException
gnuplotpath - The pathname of the gnuplot executable. If this
parameter is set to null, use the default path.isGraph3D - true if the default plot is Graph3DGNUPlotException - If the gnuplot executable
is not found, this exception is thrown. It means that the provided path
for gnuplot is not valid.GNUPlot.GNUPlot(String,boolean)public JavaPlot(GNUPlotParameters par) throws GNUPlotException
par - GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters)public JavaPlot(GNUPlotParameters par, java.lang.String gnuplotpath, GNUPlotTerminal term) throws GNUPlotException
par - gnuplotpath - term - GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters,String,GNUPlotTerminal)public JavaPlot(GNUPlotParameters par, java.lang.String gnuplotpath, GNUPlotTerminal term, boolean isGraph3D) throws GNUPlotException
par - gnuplotpath - term - isGraph3D - GNUPlotExceptionGNUPlot.GNUPlot(GNUPlotParameters,String,GNUPlotTerminal,boolean)public void setTitle(java.lang.String title)
title - Title of the graphpublic void setTitle(java.lang.String title,
java.lang.String font,
int size)
title - Title of the graphfont - Font name of this title textsize - Font size of this title textpublic void setKey(JavaPlot.Key position)
position - public void addPlot(double[][] points)
points - public void addPlot(float[][] points)
points - public void addPlot(int[][] points)
points - public void addPlot(long[][] points)
points - public void addPlot(java.lang.String function)
function - public void addPlot(DataSet set)
set -