org.ujmp.core.util
Class GnuPlot
- java.lang.Object
-
- org.ujmp.core.util.GnuPlot
-
public class GnuPlot extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String[]SEARCH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute(java.lang.String command)voidexportToFIG(java.io.File file, java.lang.Object... parameters)voidexportToPNG(java.io.File file, java.lang.Object... parameters)voidexportToPS(java.io.File file, java.lang.Object... parameters)voidexportToSVG(java.io.File file, java.lang.Object... parameters)static GnuPlotgetInstance()static GnuPlotgetInstance(java.lang.String pathToGnuPlot)static java.lang.StringgetPlotCommand(Matrix matrix, boolean withlines, boolean withpoints)static booleanisAvailable()voidplot(Matrix matrix, java.lang.String... format)voidscatterPlot(Matrix matrix, java.lang.String... format)voidsetMatrix(java.lang.String label, Matrix matrix)voidshutdown()static java.lang.StringtoString(java.lang.String[] strings)
-
-
-
Method Detail
-
getInstance
public static GnuPlot getInstance() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getInstance
public static GnuPlot getInstance(java.lang.String pathToGnuPlot) throws java.lang.Exception
- Throws:
java.lang.Exception
-
execute
public void execute(java.lang.String command) throws java.lang.Exception- Throws:
java.lang.Exception
-
shutdown
public void shutdown() throws java.lang.Exception- Throws:
java.lang.Exception
-
setMatrix
public void setMatrix(java.lang.String label, Matrix matrix) throws java.lang.Exception- Throws:
java.lang.Exception
-
isAvailable
public static boolean isAvailable()
-
plot
public void plot(Matrix matrix, java.lang.String... format) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getPlotCommand
public static java.lang.String getPlotCommand(Matrix matrix, boolean withlines, boolean withpoints)
-
scatterPlot
public void scatterPlot(Matrix matrix, java.lang.String... format) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public static java.lang.String toString(java.lang.String[] strings)
-
exportToPS
public void exportToPS(java.io.File file, java.lang.Object... parameters) throws java.lang.Exception- Throws:
java.lang.Exception
-
exportToPNG
public void exportToPNG(java.io.File file, java.lang.Object... parameters) throws java.lang.Exception- Throws:
java.lang.Exception
-
exportToFIG
public void exportToFIG(java.io.File file, java.lang.Object... parameters) throws java.lang.Exception- Throws:
java.lang.Exception
-
exportToSVG
public void exportToSVG(java.io.File file, java.lang.Object... parameters) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
DataMelt 3.0 © DataMelt by jWork.ORG