def is_bar(bar_containers, **props):
 for container in bar_containers:
  if (props['mplobj'] in container):
   return True
 return False

def is_bar ( bar_containers , ** props ) : for container in bar_containers : if ( props [ 'mplobj' ] in container ) : return True return False
a test to decide whether a path is a bar from a vertical bar chart .