Fix in JFreeChart and general plotting

This commit is contained in:
Alexander Nozik 2018-07-25 20:01:06 +03:00
parent 753555e13e
commit 500037fd42
2 changed files with 5 additions and 3 deletions

View File

@ -77,7 +77,7 @@ object TimeAnalyzerAction : OneToOneAction<NumassPoint, Table>() {
cr / 1e6 * initialEstimate.getInt(NumassAnalyzer.COUNT_KEY) * binSize * Math.exp(-it * cr / 1e6)
}
context.plot(listOf(histogramPlot, functionPlot), "histogram", name) {
context.plot(listOf(histogramPlot, functionPlot), stage = this.name, name = "histogram") {
"xAxis" to {
"title" to "delay"
"units" to "us"
@ -98,7 +98,7 @@ object TimeAnalyzerAction : OneToOneAction<NumassPoint, Table>() {
configure(inputMeta.getMetaOrEmpty("plot"))
}
context.plot(statPlot, "stat-method", name) {
context.plot(statPlot, stage = this.name, name = "stat-method") {
"xAxis" to {
"title" to "delay"
"units" to "us"
@ -118,7 +118,7 @@ object TimeAnalyzerAction : OneToOneAction<NumassPoint, Table>() {
1.0
}
(0..steps).map { minT0 + (maxT0-minT0)/steps*it }.map { t ->
(0..steps).map { minT0 + (maxT0 - minT0) / steps * it }.map { t ->
val result = analyzer.analyze(input, analyzerMeta.builder.setValue("t0", t))
if (Thread.currentThread().isInterrupted) {

View File

@ -69,4 +69,6 @@ fun main(args: Array<String>) {
}
TimeAnalyzerAction.simpleRun(point, meta);
readLine()
}