Laminate to kotlin and simplified.

This commit is contained in:
Alexander Nozik 2018-07-20 16:21:48 +03:00
parent 3740c3f4f0
commit 0e8f295542
3 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ shell.eval {
def plotGroup = new PlotGroup("points");
def adapter = Adapters.buildXYAdapter(CHANNEL_KEY, COUNT_RATE_KEY)
points.each {
plotGroup.add(
plotGroup.set(
DataPlot.plot(
it.key as String,
adapter,

View File

@ -149,7 +149,7 @@ class AmplitudeView : View(title = "Numass amplitude spectrum plot", icon = Imag
spectrum.withBinning(binning),
adapter
)
group.add(plot)
group.set(plot)
}
group
}

View File

@ -59,7 +59,7 @@ class SlowControlView : View(title = "Numass slow control view", icon = ImageVie
"showSymbol" to false
"showErrors" to false
}
group.add(plot)
group.set(plot)
}
group
} ui {