def _toggle_proj(event, params):
 if ('proj_checks' in params):
  bools = [x[0].get_visible() for x in params['proj_checks'].lines]
  for (bi, (b, p)) in enumerate(zip(bools, params['projs'])):
   if ((not b) and p['active']):
    bools[bi] = True
 else:
  bools = ([True] * len(params['projs']))
 compute_proj = False
 if ('proj_bools' not in params):
  compute_proj = True
 elif (not np.array_equal(bools, params['proj_bools'])):
  compute_proj = True
 if (compute_proj is True):
  params['plot_update_proj_callback'](params, bools)

def _toggle_proj ( event , params ) : if ( 'proj_checks' in params ) : bools = [ x [ 0 ] . get_visible ( ) for x in params [ 'proj_checks' ] . lines ] for ( bi , ( b , p ) ) in enumerate ( zip ( bools , params [ 'projs' ] ) ) : if ( ( not b ) and p [ 'active' ] ) : bools [ bi ] = True else : bools = ( [ True ] * len ( params [ 'projs' ] ) ) compute_proj = False if ( 'proj_bools' not in params ) : compute_proj = True elif ( not np . array_equal ( bools , params [ 'proj_bools' ] ) ) : compute_proj = True if ( compute_proj is True ) : params [ 'plot_update_proj_callback' ] ( params , bools )
operation to perform when proj boxes clicked .