

def _prepare_topomap(pos, ax):
    'Helper for preparing the topomap.'
    pos_x = pos[:, 0]
    pos_y = pos[:, 1]
    _hide_frame(pos_x)
    if any([(not pos_y.any()), (not pos_x.any())]):
        raise RuntimeError('No position information found, cannot compute geometries for topomap.')
    return (pos_x, pos_y)

dataset/ETHPy150Open mne-tools/mne-python/mne/viz/topomap.py _prepare_topomap/VarMisuse@34/56 `ax`->`pos_x`