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 plotGroup = new PlotGroup("points");
|
||||||
def adapter = Adapters.buildXYAdapter(CHANNEL_KEY, COUNT_RATE_KEY)
|
def adapter = Adapters.buildXYAdapter(CHANNEL_KEY, COUNT_RATE_KEY)
|
||||||
points.each {
|
points.each {
|
||||||
plotGroup.add(
|
plotGroup.set(
|
||||||
DataPlot.plot(
|
DataPlot.plot(
|
||||||
it.key as String,
|
it.key as String,
|
||||||
adapter,
|
adapter,
|
||||||
|
@ -149,7 +149,7 @@ class AmplitudeView : View(title = "Numass amplitude spectrum plot", icon = Imag
|
|||||||
spectrum.withBinning(binning),
|
spectrum.withBinning(binning),
|
||||||
adapter
|
adapter
|
||||||
)
|
)
|
||||||
group.add(plot)
|
group.set(plot)
|
||||||
}
|
}
|
||||||
group
|
group
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class SlowControlView : View(title = "Numass slow control view", icon = ImageVie
|
|||||||
"showSymbol" to false
|
"showSymbol" to false
|
||||||
"showErrors" to false
|
"showErrors" to false
|
||||||
}
|
}
|
||||||
group.add(plot)
|
group.set(plot)
|
||||||
}
|
}
|
||||||
group
|
group
|
||||||
} ui {
|
} ui {
|
||||||
|
Loading…
Reference in New Issue
Block a user