def METHOD_NAME(self):
    self.xy_plot.clear()
    self.hist_plot.clear()
    text = "⚠️ dataset lengths mismatch:\n\n"
    if self.mismatch['bins']:
        text = ''.join([text,
                        "bin boundaries should have the same length\n"
                        "as the first dimension of histogram counts."])
    if self.mismatch['bins'] and self.mismatch['xs']:
        text = ''.join([text, '\n\n'])
    if self.mismatch['xs']:
        text = ''.join([text,
                        "point abscissas should have the same length\n"
                        "as the second dimension of histogram counts."])
    self.xy_plot.addItem(pyqtgraph.TextItem(text))