def METHOD_NAME(
    out_name,
    neg_idx,
    xname,
    yname,
    title,
    xval,
    yval,
    cval,
    cname,
    vmin,
    vmax,
    xmin,
    ymin,
    majorL,
    minorL,
    colormap,
):
    if colormap != "jet":
        cmap = colormap
    else:
        cmap = matplotlib.cm.jet
        cmap.set_under(color="gray")
    if vmin is not None:
        vmin = float(vmin)
    if vmax is not None:
        vmax = float(vmax)
    fig = pylab.figure(num=None)
    pylab.scatter(
        xval,
        yval,
        c=cval,
        linewidths=0,
        s=3,
        vmin=vmin,
        vmax=vmax,
        cmap=cmap,
        alpha=0.7,
    )
    if len(neg_idx) > 0:
        pylab.scatter(
            xval[neg_idx],
            yval[neg_idx],
            c="red",
            marker="x",
            label="Unable to generate waveforms",
        )
        matplotlib.pyplot.legend()
    if cval is not None:
        bar = pylab.colorbar()
        bar.set_label(cname)
    pylab.xlabel(xname)
    pylab.ylabel(yname)
    if xmin is None:
        xmin = min(xval)
    else:
        xmin = float(xmin)
    if ymin is None:
        ymin = min(yval)
    else:
        ymin = float(ymin)
    pylab.xlim(xmin, max(xval))
    pylab.ylim(ymin, max(yval))
    ax = fig.gca()
    if majorL:
        majorL = float(majorL)
        ax.xaxis.set_major_locator(MultipleLocator(majorL))
        ax.yaxis.set_major_locator(MultipleLocator(majorL))
    if minorL:
        minorL = float(minorL)
        ax.xaxis.set_minor_locator(MultipleLocator(minorL))
        ax.yaxis.set_minor_locator(MultipleLocator(minorL))
    pylab.grid()
    pylab.title(title)
    pylab.savefig(out_name, dpi=500)