def _setup_browser_offsets(params, n_channels):
 ylim = [((n_channels * 2) + 1), 0]
 offset = (ylim[0] / n_channels)
 params['offsets'] = ((np.arange(n_channels) * offset) + (offset / 2.0))
 params['n_channels'] = n_channels
 params['ax'].set_yticks(params['offsets'])
 params['ax'].set_ylim(ylim)
 params['vsel_patch'].set_height(n_channels)
 line = params['ax_vertline']
 line.set_data(line._x, np.array(params['ax'].get_ylim()))

def _setup_browser_offsets ( params , n_channels ) : ylim = [ ( ( n_channels * 2 ) + 1 ) , 0 ] offset = ( ylim [ 0 ] / n_channels ) params [ 'offsets' ] = ( ( np . arange ( n_channels ) * offset ) + ( offset / 2.0 ) ) params [ 'n_channels' ] = n_channels params [ 'ax' ] . set_yticks ( params [ 'offsets' ] ) params [ 'ax' ] . set_ylim ( ylim ) params [ 'vsel_patch' ] . set_height ( n_channels ) line = params [ 'ax_vertline' ] line . set_data ( line . _x , np . array ( params [ 'ax' ] . get_ylim ( ) ) )
aux function for computing viewport height and adjusting offsets .