GUI: fixed matplotlib bug in facedetectionpanel that was causing a non-fatal but unnecessary warning

This commit is contained in:
appleb_m committed 2026-03-10 11:56:22 +01:00
1 parent ee6b01005b
commit a8acda20af
1 file changed
+8 -1
+8 -1
View File
@@ -28,7 +28,14 @@ class FaceDetectionPanel(QWidget):
def _set_step_size(val: float):
self.step_size = int(val)
self.fig = Figure(figsize=(5, 4), tight_layout=True)
self.fig = Figure(figsize=(5, 4))
self.fig.subplots_adjust(
left=0.12,
right=0.97,
bottom=0.10,
top=0.95,
hspace=0.45,
)
self.canvas = FigureCanvas(self.fig)
self.ax1 = self.fig.add_subplot(2, 1, 1)
self.ax2 = self.fig.add_subplot(2, 1, 2)