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

Method _update_metrics

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

Source from the content-addressed store, hash-verified

1257 TrueType fonts.
1258 """
1259 def _update_metrics(self) -> None:
1260 metrics = self._metrics = self.fontset.get_metrics(
1261 self.font, self.font_class, self.c, self.fontsize, self.dpi)
1262 self.width = metrics.xmax - metrics.xmin
1263 self.height = metrics.ymax - metrics.ymin
1264 self.depth = 0
1265
1266 def shrink(self) -> None:
1267 super().shrink()

Callers 1

shrinkMethod · 0.95

Calls 1

get_metricsMethod · 0.45

Tested by

no test coverage detected