mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-07-29 06:33:04 +02:00
feat(image_widget): all toolbar actions added
This commit is contained in:
@@ -52,6 +52,7 @@ class JupyterConsoleWindow(QWidget): # pragma: no cover:
|
||||
"wave": self.wave,
|
||||
"bar": self.bar,
|
||||
"cm": self.colormap,
|
||||
"im": self.im,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -158,12 +159,10 @@ class JupyterConsoleWindow(QWidget): # pragma: no cover:
|
||||
self.fig0 = self.d0.add_widget("BECFigure")
|
||||
data = np.random.rand(10, 2)
|
||||
self.fig0.plot(data, label="2d Data")
|
||||
self.fig0.image("eiger", vrange=(0, 100))
|
||||
|
||||
self.d1 = self.dock.add_dock(name="dock_1", position="right")
|
||||
self.fig1 = self.d1.add_widget("BECFigure")
|
||||
self.fig1.plot(x_name="samx", y_name="bpm4i")
|
||||
self.fig1.plot(x_name="samx", y_name="bpm3a")
|
||||
self.im = self.fig1.image("eiger")
|
||||
|
||||
self.d2 = self.dock.add_dock(name="dock_2", position="bottom")
|
||||
self.wave = self.d2.add_widget("BECWaveformWidget", row=0, col=0)
|
||||
|
||||
Reference in New Issue
Block a user