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

Method aliased_name

lib/matplotlib/artist.py:1632–1641  ·  view source on GitHub ↗

Return 'PROPNAME or alias' if *s* has an alias, else return 'PROPNAME'. For example, for the line markerfacecolor property, which has an alias, return 'markerfacecolor or mfc' and for the transform property, which does not, return 'transform'.

(self, s)

Source from the content-addressed store, hash-verified

1630 return ds.startswith('Alias for ')
1631
1632 def aliased_name(self, s):
1633 """
1634 Return 'PROPNAME or alias' if *s* has an alias, else return 'PROPNAME'.
1635
1636 For example, for the line markerfacecolor property, which has an
1637 alias, return 'markerfacecolor or mfc' and for the transform
1638 property, which does not, return 'transform'.
1639 """
1640 aliases = ''.join(' or %s' % x for x in sorted(self.aliasd.get(s, [])))
1641 return s + aliases
1642
1643 _NOT_LINKABLE = {
1644 # A set of property setter methods that are not available in our

Callers 2

pprint_settersMethod · 0.95
pprint_gettersMethod · 0.95

Calls 2

joinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected