forked from M-Labs/nix-servo
- OpenGL is needed for the GUI to render complex waveform in reasonable time - this commit removes the rendering of ths signal strength of error signals which cause the Painter path exceeds +/-32767 pixels problem - that is due to an limitations in Pyqt5.
18 lines
792 B
Diff
18 lines
792 B
Diff
diff --git a/linien-gui/linien_gui/ui/plot_widget.py b/linien-gui/linien_gui/ui/plot_widget.py
|
|
index fe20e66..f5d03c3 100644
|
|
--- a/linien-gui/linien_gui/ui/plot_widget.py
|
|
+++ b/linien-gui/linien_gui/ui/plot_widget.py
|
|
@@ -680,8 +680,10 @@ class PlotWidget(pg.PlotWidget):
|
|
fill.setBrush(brush)
|
|
|
|
invisible_pen = pg.mkPen("k", width=0.00001)
|
|
- signal.setData(x, upper, pen=invisible_pen)
|
|
- neg_signal.setData(x, lower, pen=invisible_pen)
|
|
+ # Painter path exceeds +/-32767 pixels. Error when OpenGL is enabled
|
|
+ # signal.setData(x, upper, pen=invisible_pen)
|
|
+ # neg_signal.setData(x, lower, pen=invisible_pen)
|
|
+
|
|
return np.max([np.max(upper), -1 * np.min(lower)]) * V
|
|
|
|
def plot_autolock_target_line(self, combined_error_signal):
|