blob: 4e474c3da5763db25332d3d3612f1ce30e2fb3e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package scalam
import scalam.charting.MatlabChart
import scalam.charting.HSV
import breeze.linalg.DenseVector
package object charting {
//test
def plot(dataSets: Seq[(DenseVector[Double], DenseVector[Double])]) = {
val ds: Seq[DataSet] = dataSets.map{case (xs, ys) => DataSet(xs, ys)}
val c = new MatlabChart(ds, "title", "x", "y", colorScheme = new HSV(ds))
c.save()
c.run()
}
}
|