def METHOD_NAME(self, item):
    if not self.mapper:
        return
    iq0 = []
    rg = []
    pos = []
    pos_err = []
    osc = []
    bck = []
    chi2 = []
    plotable_xs = [] #Introducing this to make sure size of x and y for plotting is the same.8
    try:
        dmin = float(self.model.item(W.DMIN).text())
        dmax = float(self.model.item(W.DMAX).text())
        npts = int(self.model.item(W.NPTS).text())
        xs = np.linspace(dmin, dmax, npts)
    except ValueError as e:
        msg = ("An input value is not correctly formatted. Please check {}"
               .format(e.message))
        logger.error(msg)
    original = self.pr_state.d_max
    for x in xs:
        self.pr_state.d_max = x
        try:
            out, cov = self.pr_state.invert(self.pr_state.nfunc)
            iq0.append(self.pr_state.iq0(out))
            rg.append(self.pr_state.rg(out))
            pos.append(self.pr_state.get_positive(out))
            pos_err.append(self.pr_state.get_pos_err(out, cov))
            osc.append(self.pr_state.oscillations(out))
            bck.append(self.pr_state.background)
            chi2.append(self.pr_state.chi2)
            plotable_xs.append(x)
        except Exception as ex:
            # This inversion failed, skip this D_max value
            msg = "ExploreDialog: inversion failed "
            msg += "for D_max=%s\n%s" % (str(x), ex)
            logger.error(msg)
    #Return the invertor to its original state
    self.pr_state.d_max = original
    try:
        self.pr_state.invert(self.nfunc)
    except RuntimeError as ex:
        msg = "ExploreDialog: inversion failed "
        msg += "for D_max=%s\n%s" % (str(x), ex)
        logger.error(msg)
    plotter = self.dependentVariable.currentText()
    x_label = "D_{max}"
    x_unit = "A"
    if plotter == "χ²/dof":
        ys = chi2
        y_label = "\\chi^2/dof"
        y_unit = "a.u."
    elif plotter == "I(Q=0)":
        ys = iq0
        y_label = "I(q=0)"
        y_unit = "cm^{-1}"
    elif plotter == "Rg":
        ys = rg
        y_label = "R_g"
        y_unit = "\\AA"
    elif plotter == "Oscillation parameter":
        ys = osc
        y_label = "Osc"
        y_unit = "a.u."
    elif plotter == "Background":
        ys = bck
        y_label = "Bckg"
        y_unit = "cm^{-1}"
    elif plotter == "Positive Fraction":
        ys = pos
        y_label = "P^+"
        y_unit = "a.u."
    else:
        ys = pos_err
        y_label = "P^{+}_{1\\sigma}"
        y_unit = "a.u."
    data = Data1D(plotable_xs, ys)
    if self.hasPlot:
        self.plot.removePlot(data.name)
    self.hasPlot = True
    data.title = plotter
    data._xaxis= x_label
    data._xunit = x_unit
    data._yaxis = y_label
    data._yunit = y_unit
    self.plot.plot(data=data, marker="-")