MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_siblings

Method get_siblings

lib/matplotlib/cbook.py:914–924  ·  view source on GitHub ↗

Return all the items joined with *a*. *a* is included in the list if *include_self* is True.

(self, a, *, include_self=True)

Source from the content-addressed store, hash-verified

912 yield sorted(group, key=self._ordering.__getitem__)
913
914 def get_siblings(self, a, *, include_self=True):
915 """
916 Return all the items joined with *a*.
917
918 *a* is included in the list if *include_self* is True.
919 """
920 siblings = self._mapping.get(a, [a])
921 result = sorted(siblings, key=self._ordering.get)
922 if not include_self:
923 result.remove(a)
924 return result
925
926
927class GrouperView:

Callers 15

test_grouperFunction · 0.95
view_initMethod · 0.45
_get_shared_axesMethod · 0.45
_remove_axesMethod · 0.45
get_siblingsMethod · 0.45
__getstate__Method · 0.45
_unstale_viewLimMethod · 0.45
_set_positionMethod · 0.45
reset_positionMethod · 0.45
set_aspectMethod · 0.45

Calls 2

getMethod · 0.45
removeMethod · 0.45

Tested by 1

test_grouperFunction · 0.76