@larch.ValidateLarchPlugin
def _xrf_plot(x=None, y=None, mca=None, win=1, new=True, as_mca2=False, _larch=None,
              wxparent=None, size=None, side='left', force_draw=True, **kws):
    plotter = _getDisplay(wxparent=wxparent, win=win, size=size,
                          _larch=_larch, xrf=True)
    if plotter is None:
        _larch.raise_exception(msg='No Plotter defined')
    plotter.Raise()
    if x is None:
        return
    if isLarchMCAGroup(x):
        mca = x
        y = x.counts
        x = x.energy

    if as_mca2:
        new = False
        if isLarchMCAGroup(mca):
            plotter.plotmca(mca, as_mca2=True, new=False, **kws)
        elif y is not None:
            plotter.oplot(x, y, mca=mca, as_mca2=True, **kws)
    elif new:
        if isLarchMCAGroup(mca):
            plotter.plotmca(mca, **kws)
        elif y is not None:
            plotter.plot(x, y, mca=mca, **kws)
    else:
        plotter.oplot(x, y, mca=mca, **kws)
Add a new row in the fiducials checkboxes section
dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/plotter.py/_xrf_plot--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/CIP_LesionModel.py/CIP_LesionModelWidget.addFiducialRow