Laminate to kotlin and simplified.
This commit is contained in:
parent
3740c3f4f0
commit
0e8f295542
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user