From eaadb40c8968333b609a6a17bb089fce19950e95 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Tue, 30 Oct 2012 21:54:22 +0100 Subject: remove save and run capability from plots --- src/main/scala/scalam/plotting/Plot.scala | 21 --------------------- 1 file changed, 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 - } } -- cgit v1.2.3