code: def setup_figcanvas(self):
          
          self.figcanvas = FigureCanvas(background_color=self.background_color)
          self.figcanvas.installEventFilter(self)
          self.setWidget(self.figcanvas)
docs: Setup the FigureCanvas.