@larch.ValidateLarchPlugin
def _getDisplay(win=1, _larch=None, wxparent=None, size=None,
                xrf=False, image=False):
    # global PLOT_DISPLAYS, IMG_DISPlAYS

    win = max(1, min(MAX_WINDOWS, int(abs(win))))
    title   = 'Plot Window %i' % win
    symname = '%s.plot%i' % (MODNAME, win)
    creator = PlotDisplay
    display_dict = PLOT_DISPLAYS
    if image:
        creator = ImageDisplay
        display_dict = IMG_DISPLAYS
        title   = 'Image Window %i' % win
        symname = '%s.img%i' % (MODNAME, win)
    elif xrf:
        creator = XRFDisplay
        display_dict = XRF_DISPLAYS
        title   = 'XRF Display Window %i' % win
        symname = '%s.xrf%i' % (MODNAME, win)

    if win in display_dict:
        display = display_dict[win]
    else:
        display = _larch.symtable.get_symbol(symname, create=True)
    if display is None:
        display = creator(window=win, wxparent=wxparent, size=size, _larch=_larch)
    _larch.symtable.set_symbol(symname, display)
    if display is not None:
        display.SetTitle(title)
    return display
make a plotter
dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/plotter.py/_getDisplay