MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

site-packages/matplotlib/mathtext.py:1436–1447  ·  view source on GitHub ↗
(self, c, state, math=True)

Source from the content-addressed store, hash-verified

1434 :class:`Char` is added to its parent :class:`Hlist`.
1435 """
1436 def __init__(self, c, state, math=True):
1437 Node.__init__(self)
1438 self.c = c
1439 self.font_output = state.font_output
1440 self.font = state.font
1441 self.font_class = state.font_class
1442 self.fontsize = state.fontsize
1443 self.dpi = state.dpi
1444 self.math = math
1445 # The real width, height and depth will be set during the
1446 # pack phase, after we know the real fontsize
1447 self._update_metrics()
1448
1449 def __repr__(self):
1450 return '`%s`' % self.c

Callers

nothing calls this directly

Calls 2

_update_metricsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected