Package org.ujmp.core.util
Class GnuPlot
java.lang.Object
org.ujmp.core.util.GnuPlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BufferedReader
private static GnuPlot
private Process
private BufferedReader
private static File
private BufferedWriter
private static String
private boolean
static String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
exportToFIG
(File file, Object... parameters) void
exportToPNG
(File file, Object... parameters) void
exportToPS
(File file, Object... parameters) void
exportToSVG
(File file, Object... parameters) private static String
private String
static GnuPlot
static GnuPlot
getInstance
(String pathToGnuPlot) static String
getPlotCommand
(Matrix matrix, boolean withlines, boolean withpoints) static boolean
void
void
scatterPlot
(Matrix matrix, String... format) private void
sendToGnuPlot
(String command) void
void
shutdown()
static String
-
Field Details
-
SEARCH
-
pathToGnuPlot
-
input
-
output
-
error
-
gnuPlotProcess
-
running
private boolean running -
gnuPlot
-
matrixFile
-
-
Constructor Details
-
GnuPlot
- Throws:
Exception
-
-
Method Details
-
getInstance
- Throws:
Exception
-
findGnuPlot
-
getInstance
- Throws:
Exception
-
getFromGnuPlot
- Throws:
Exception
-
execute
- Throws:
Exception
-
shutdown
- Throws:
Exception
-
sendToGnuPlot
- Throws:
Exception
-
setMatrix
- Throws:
Exception
-
isAvailable
public static boolean isAvailable() -
plot
- Throws:
Exception
-
getPlotCommand
-
scatterPlot
- Throws:
Exception
-
toString
-
exportToPS
- Throws:
Exception
-
exportToPNG
- Throws:
Exception
-
exportToFIG
- Throws:
Exception
-
exportToSVG
- Throws:
Exception
-