def METHOD_NAME(delta_rho, a, z, stationSpacing, B):
    global plotdata
    global index
    global colorList
    global currentResult
    respEW, respNS, X, Y = datagenerator(delta_rho, a, z, stationSpacing)
    Dpi = 60
    plt.figure(figsize=(15, 20), dpi=Dpi)
    ax0 = plt.subplot2grid((20, 1), (1, 0), rowspan=4)
    ax2 = plt.subplot2grid((20, 1), (5, 0), rowspan=9)
    ax1 = plt.subplot2grid((20, 18), (14, 6), rowspan=4, colspan=6)
    textShow = []
    colors = []
    maxG = -100
    minG = 100
    if B:
        for each in plotdata:
            ax0.plot(each[0], each[1], ".-", color=each[2])
            textShow.append(each[3])
            colors.append(each[2])
            if each[4] > maxG:
                maxG = each[4]
            elif each[4] < minG:
                minG = each[4]
    else:
        plotdata.clear()
        index = 0
        maxG = -100
        minG = 100
    ax0.plot(Y[:, 0], respNS, ".-", color=colorList[index])
    currentResult = [Y[:, 0], respNS]
    showText = (
        r"$\Delta\rho$" + "=" + str(delta_rho) + ", a=" + str(a) + " ,z=" + str(z)
    )
    textShow.append(showText)
    colors.append(colorList[index])
    textLocation = max(max(respNS), maxG)
    maxG = max(max(respNS), maxG)
    minG = min(min(respNS), minG)
    textheight = 12 / 2.845 / 80 * (maxG - minG)
    for i in range(len(textShow)):
        ax0.text(
            -10,
            textLocation - i * textheight,
            textShow[i],
            color=colors[i],
            verticalalignment="top",
            fontsize=10,
        )
    ax0.grid(True)
    ax0.set_ylabel(r"$\Delta g_z$" + "(mGal)", fontsize=16)
    ax0.set_xlabel("x (m)", fontsize=16)
    printGrapha(delta_rho, a, z, ax1, stationSpacing)
    printCirCle(a, z, ax2)
    if B:
        plotdata.append(
            [
                copy.deepcopy(Y[:, 0]),
                copy.deepcopy(respNS),
                colorList[index],
                showText,
                textLocation,
            ]
        )
        index += 1
        if index > len(colorList) - 1:
            index = 0
    plt.tight_layout()
    plt.show()