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

Class HCentered

lib/matplotlib/_mathtext.py:1595–1602  ·  view source on GitHub ↗

A convenience class to create an `Hlist` whose contents are centered within its enclosing box.

Source from the content-addressed store, hash-verified

1593
1594
1595class HCentered(Hlist):
1596 """
1597 A convenience class to create an `Hlist` whose contents are
1598 centered within its enclosing box.
1599 """
1600
1601 def __init__(self, elements: list[Node]):
1602 super().__init__([Glue('ss'), *elements, Glue('ss')], do_kern=False)
1603
1604
1605class VCentered(Vlist):

Callers 5

accentMethod · 0.85
subsuperMethod · 0.85
_genfracMethod · 0.85
_gensetMethod · 0.85
substackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…