

def plot_layout(layout, show=True):
    'Plot the sensor positions.\n\n    Parameters\n    ----------\n    layout : None | Layout\n        Layout instance specifying sensor positions.\n    show : bool\n        Show figure if True. Defaults to True.\n\n    Returns\n    -------\n    fig : instance of matplotlib figure\n        Figure containing the sensor topography.\n\n    Notes\n    -----\n\n    .. versionadded:: 0.12.0\n\n    '
    import matplotlib.pyplot as plt
    fig = plt.figure()
    ax = fig.add_subplot(111)
    fig.subplots_adjust(left=0, bottom=0, right=1, top=1, wspace=None, hspace=None)
    ax.set_xticks([])
    ax.set_yticks([])
    pos = [((p[0] + (p[2] / 2.0)), (this_pos[1] + (p[3] / 2.0))) for p in layout.pos]
    (pos, outlines) = _check_outlines(pos, 'head')
    _draw_outlines(ax, outlines)
    for (ii, (this_pos, ch_id)) in enumerate(zip(pos, layout.names)):
        ax.annotate(ch_id, xy=this_pos[:2], horizontalalignment='center', verticalalignment='center', size='x-small')
    plt_show(show)
    return fig

dataset/ETHPy150Open mne-tools/mne-python/mne/viz/topomap.py plot_layout/VarMisuse@106/249 `p`->`this_pos`