def plot_layout(layout, show=True):
    """Plot the sensor positions.

    Parameters
    ----------
    layout : None | Layout
        Layout instance specifying sensor positions.
    show : bool
        Show figure if True. Defaults to True.

    Returns
    -------
    fig : instance of matplotlib figure
        Figure containing the sensor topography.

    Notes
    -----

    .. versionadded:: 0.12.0

    """
    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., p[1] + p[3] / 2.) 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/operator `/` -> `-`