def attribute_path_to_object_names(attribute_container_path):
 object_names = ['figure']
 if ('layout' in attribute_container_path):
  for path_part in attribute_container_path:
   if (path_part in OBJECTS):
    object_names.append(path_part)
   if (path_part in ARRAYS):
    object_names.append(path_part)
    object_names.append(path_part[:(-1)])
 elif ('layoutAttributes' in attribute_container_path):
  object_names.append('layout')
  start_index = attribute_container_path.index('layoutAttributes')
  for path_part in attribute_container_path[start_index:]:
   if (path_part in OBJECTS):
    object_names.append(path_part)
   if (path_part in ARRAYS):
    object_names.append(path_part)
    object_names.append(path_part[:(-1)])
 else:
  object_names.append('data')
  for path_part in attribute_container_path:
   if (path_part in OBJECTS):
    object_names.append(path_part)
   if (path_part in ARRAYS):
    object_names.append(path_part)
    object_names.append(path_part[:(-1)])
 return tuple(object_names)

def attribute_path_to_object_names ( attribute_container_path ) : object_names = [ 'figure' ] if ( 'layout' in attribute_container_path ) : for path_part in attribute_container_path : if ( path_part in OBJECTS ) : object_names . append ( path_part ) if ( path_part in ARRAYS ) : object_names . append ( path_part ) object_names . append ( path_part [ : ( - 1 ) ] ) elif ( 'layoutAttributes' in attribute_container_path ) : object_names . append ( 'layout' ) start_index = attribute_container_path . index ( 'layoutAttributes' ) for path_part in attribute_container_path [ start_index : ] : if ( path_part in OBJECTS ) : object_names . append ( path_part ) if ( path_part in ARRAYS ) : object_names . append ( path_part ) object_names . append ( path_part [ : ( - 1 ) ] ) else : object_names . append ( 'data' ) for path_part in attribute_container_path : if ( path_part in OBJECTS ) : object_names . append ( path_part ) if ( path_part in ARRAYS ) : object_names . append ( path_part ) object_names . append ( path_part [ : ( - 1 ) ] ) return tuple ( object_names )
return a location within a figure from a path existing in graph_reference .