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

Method __init__

lib/matplotlib/_mathtext.py:1195–1205  ·  view source on GitHub ↗
(self, c: str, state: ParserState)

Source from the content-addressed store, hash-verified

1193 """
1194
1195 def __init__(self, c: str, state: ParserState):
1196 super().__init__()
1197 self.c = c
1198 self.fontset = state.fontset
1199 self.font = state.font
1200 self.font_class = state.font_class
1201 self.fontsize = state.fontsize
1202 self.dpi = state.dpi
1203 # The real width, height and depth will be set during the
1204 # pack phase, after we know the real fontsize
1205 self._update_metrics()
1206
1207 def __repr__(self) -> str:
1208 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