def METHOD_NAME(self):
    """Test ScatterProfileToolBar horizontal profile"""
    roiManager = self.manager.getRoiManager()
    # Add a scatter plot
    self.plot.addScatter(
        x=(0., 1., 1., 0.), y=(0., 0., 1., 1.), value=(0., 1., 2., 3.))
    self.plot.resetZoom(dataMargins=(.1, .1, .1, .1))
    self.qapp.processEvents()
    # Set a ROI profile
    roi = rois.ProfileScatterHorizontalLineROI()
    roi.setPosition(0.5)
    roi.setNPoints(8)
    roiManager.addRoi(roi)
    # Wait for async interpolator init
    for _ in range(20):
        self.qWait(200)
        if not self.manager.hasPendingOperations():
            break
    self.qapp.processEvents()
    window = roi.getProfileWindow()
    self.assertIsNotNone(window)
    data = window.getProfile()
    self.assertIsInstance(data, core.CurveProfileData)
    self.assertEqual(len(data.coords), 8)
    # Check that profile has same limits than Plot
    xLimits = self.plot.getXAxis().getLimits()
    self.assertEqual(data.coords[0], xLimits[0])
    self.assertEqual(data.coords[-1], xLimits[1])
    # Clear the profile
    self.manager.clearProfile()
    self.qapp.processEvents()
    self.assertIsNone(roi.getProfileWindow())