aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2012-10-30 21:54:22 +0100
committerJakob Odersky <jodersky@gmail.com>2012-10-30 21:54:22 +0100
commiteaadb40c8968333b609a6a17bb089fce19950e95 (patch)
treef6b10c6842e2b88b0e9a0d8c9eefd047a4dcc577
parenta93a86db7ad1839605448f9532ac96300785a59e (diff)
downloadscalam-eaadb40c8968333b609a6a17bb089fce19950e95.tar.gz
scalam-eaadb40c8968333b609a6a17bb089fce19950e95.tar.bz2
scalam-eaadb40c8968333b609a6a17bb089fce19950e95.zip
remove save and run capability from plots
-rw-r--r--src/main/scala/scalam/plotting/Plot.scala21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main/scala/scalam/plotting/Plot.scala b/src/main/scala/scalam/plotting/Plot.scala
index 5494ace..dede530 100644
--- a/src/main/scala/scalam/plotting/Plot.scala
+++ b/src/main/scala/scalam/plotting/Plot.scala
@@ -16,9 +16,6 @@ class Plot(
styles: Seq[Style[_]] = Seq(),
name: String = "plot" + Plot.next) {
- val directory = Path(name)
- val localPlotFile = Path("results.m")
-
private case class RichDataSet(underlying: DataSet, localPath: Path, id: Identifier)
private val richDataSets = dataSets.zipWithIndex.map {
case (d, i) => RichDataSet(d, Path("data") / i.toString, Identifier("data" + (i + 1)))
@@ -75,24 +72,6 @@ class Plot(
Seq(DoubleComment("Generated by scalam, v1.0-new"), DoubleComment(df.format(now)))
}
- def save() = {
- for (d <- richDataSets) d.underlying.save(directory / d.localPath)
-
- val plotFile = (directory / localPlotFile)
- plotFile.createFile(createParents = true, failIfExists = false)
- for (processor <- plotFile.outputProcessor; out = processor.asOutput) {
- for (p <- preamble) out.write(p.line + "\n")
- for (r <- roots) out.write(r.line + "\n")
- }
-
- }
-
- def run() = {
- Process(
- "matlab -nodesktop -nosplash -r " + localPlotFile.path.takeWhile(_ != '.'),
- directory.fileOption,
- "" -> "") #> (directory / "log.txt").fileOption.get run
- }
}