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

Method is_char_node

lib/matplotlib/_mathtext.py:1137–1144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1135 """Render this node."""
1136
1137 def is_char_node(self) -> bool:
1138 # TeX defines a `char_node` as one which represents a single character,
1139 # but also states that a `char_node` will never appear in a `Vlist`
1140 # (node134). Further, nuclei made of one `Char` and nuclei made of
1141 # multiple `Char`s have their superscripts and subscripts shifted by
1142 # the same amount. In order to make Mathtext behave similarly, just
1143 # check whether this node is a `Vlist` or has any `Vlist` descendants.
1144 return True
1145
1146
1147class Box(Node):

Callers 1

is_char_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected