parameters: (ax, data)
return_statement: return electrodeMarker
docstring: Draw Sensor marker, these marker are pickable.
docstring_summary: Draw Sensor marker, these marker are pickable.
docstring_tokens: Draw Sensor marker these marker are pickable .
function: def drawSensorAsMarker(ax, data):
      """Draw Sensor marker, these marker are pickable."""
      elecsX = []
      elecsY = []
  
      for i in range(len(data.sensorPositions())):
          elecsX.append(data.sensorPositions()[i][0])
          elecsY.append(data.sensorPositions()[i][1])
  
      electrodeMarker, = ax.plot(elecsX, elecsY, 'x', color='black', picker=5.)
  
      ax.set_xlim([data.sensorPositions()[0][0] - 1.,
                   data.sensorPositions()[data.sensorCount() - 1][0] + 1.])
  
      return electrodeMarker
function_tokens: def drawSensorAsMarker ( ax , data ) : elecsX = [ ] elecsY = [ ] for i in range ( len ( data . sensorPositions ( ) ) ) : elecsX . append ( data . sensorPositions ( ) [ i ] [ 0 ] ) elecsY . append ( data . sensorPositions ( ) [ i ] [ 1 ] ) electrodeMarker , = ax . plot ( elecsX , elecsY , 'x' , color = 'black' , picker = 5. ) ax . set_xlim ( [ data . sensorPositions ( ) [ 0 ] [ 0 ] - 1. , data . sensorPositions ( ) [ data . sensorCount ( ) - 1 ] [ 0 ] + 1. ] ) return electrodeMarker