diff --git a/pyproject.toml b/pyproject.toml index 1060f2b..0956ff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,14 +57,14 @@ sigmon = [ "pygraphviz>=1.14", "typer>=0.15.1", "ezmsg-qt>=0.2.1", - "phosphor>=0.9.1", + "phosphor>=0.11.0", "pandas", ] viewer = [ "PySide6>=6.7", "typer>=0.15.1", "ezmsg-qt>=0.2.1", - "phosphor>=0.9.1", + "phosphor>=0.11.0", ] [project.scripts] diff --git a/src/ezmsg/tools/plot/shmem_sweep.py b/src/ezmsg/tools/plot/shmem_sweep.py index c4b2645..943ecb7 100644 --- a/src/ezmsg/tools/plot/shmem_sweep.py +++ b/src/ezmsg/tools/plot/shmem_sweep.py @@ -249,6 +249,8 @@ def _apply_shape(self, shape: StreamShape) -> None: else: self._sweep.update_config(self._config_for(shape)) self._sweep.set_channel_labels(self._labels_for(shape)) + if self._controls is not None: + self._controls.set_amplitude_unit(shape.unit) def _labels_for(self, shape: StreamShape) -> list[str]: labels = shape.channel_labels @@ -306,5 +308,6 @@ def _build(self, shape: StreamShape) -> None: self._sweep.set_channel_labels_visible(True) if self._show_controls: self._controls = ChannelPlotControlsWidget(self._sweep, parent=self) + self._controls.set_amplitude_unit(shape.unit) self._layout.addWidget(self._controls) self.on_plot_built()