def plot_layout(layout, show=True):
    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
Plot the sensor positions.
dataset/ETHPy150Open mne-tools/mne-python/mne/viz/topomap.py/plot_layout