def find_gui_and_backend(gui=None):

    import matplotlib

    if gui:
        # select backend based on requested gui
        backend = backends[gui]
    else:
        backend = matplotlib.rcParams['backend']
        # In this case, we need to find what the appropriate gui selection call
        # should be for IPython, so we can activate inputhook accordingly
        gui = backend2gui.get(backend, None)
    return gui, backend
Return the current shape polygon as tuple of coordinate pairs.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/lib/pylabtools.py/find_gui_and_backend--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/site-packages/turtle.py/RawTurtle.get_shapepoly