fix graph and white background added
This commit is contained in:
@@ -120,27 +120,15 @@ class LiveSettingsController:
|
||||
|
||||
def _redraw(self) -> None:
|
||||
try:
|
||||
mode = self._mode.currentText()
|
||||
pipeline, plots, history = self._pipeline, self._pipeline.plots, self._pipeline.history
|
||||
if mode == "bscan":
|
||||
if pipeline.can_reprocess_history():
|
||||
pipeline.schedule_replay()
|
||||
else:
|
||||
pipeline.drain_results(timeout_s=0.25, poll_s=0.01)
|
||||
plots.draw_bscan()
|
||||
mode, pipeline = self._mode.currentText(), self._pipeline
|
||||
if mode == "bscan" and pipeline.can_reprocess_history():
|
||||
pipeline.schedule_replay()
|
||||
elif mode == "bscan":
|
||||
pipeline.drain_results(timeout_s=0.25, poll_s=0.01)
|
||||
elif mode in _GEOMETRY_MODES:
|
||||
latest = pipeline.drain_results(timeout_s=0.8, poll_s=0.02)
|
||||
collection = latest if latest is not None else history.results[-1] if history.results else None
|
||||
if mode == "sar3d":
|
||||
plots.sar3d.clear()
|
||||
if collection is not None:
|
||||
plots.draw(collection)
|
||||
elif collection is None or not plots.draw(collection):
|
||||
plots.clear_gpr()
|
||||
elif history.results:
|
||||
plots.draw(history.results[-1])
|
||||
else:
|
||||
plots.trace.clear()
|
||||
# Only the published revision is drawn: wait for the newest sweep recomputed with it.
|
||||
pipeline.drain_results(timeout_s=0.8, poll_s=0.02, revision=pipeline.plots.required_revision)
|
||||
pipeline.plots.redraw()
|
||||
except Exception as exc:
|
||||
self._log.show_exception("Failed to render processing settings", exc)
|
||||
|
||||
@@ -171,7 +159,7 @@ class LiveSettingsController:
|
||||
|
||||
def locator_changed(self, *_args: object) -> None:
|
||||
if self._mode.currentText() == "gpr" and self._publish_changes():
|
||||
self.visual_changed()
|
||||
self._redraw()
|
||||
|
||||
def set_mode_page(self, mode: str) -> None:
|
||||
pages = self._processing.pages
|
||||
|
||||
Reference in New Issue
Block a user