def METHOD_NAME(self):
    self.setAutoFillBackground(False)
    self.setStyleSheet("background: #fff")
    self.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
    self.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
    self.setMidLineWidth(1)
    vbox = QtWidgets.QVBoxLayout(self)
    self.plot_widget = pg.PlotWidget(self, background='#ffffff')
    vbox.addWidget(self.plot_widget)
    self.setLayout(vbox)
    self.plot = self.plot_widget.getPlotItem()
    style = dict(self.LABEL_STYLE, justify='right')
    if "font-size" in style:  # LabelItem wants the size as 'size' rather than 'font-size'
        style["size"] = style.pop("font-size")
    self.coordinates = pg.LabelItem("", parent=self.plot, **style)
    self.coordinates.anchor(itemPos=(1, 1), parentPos=(1, 1), offset=(0, 3))
    self.crosshairs = Crosshairs(self.plot,
                                 pen=pg.mkPen(color='#AAAAAA',
                                              style=QtCore.Qt.PenStyle.DashLine))
    self.crosshairs.coordinates.connect(self.update_coordinates)
    self.timer = QtCore.QTimer(self)
    self.timer.timeout.connect(self.update_curves)
    self.timer.timeout.connect(self.crosshairs.update)
    self.timer.timeout.connect(self.updated)
    self.timer.start(int(self.refresh_time * 1e3))