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

Method _set_title_offset_trans

lib/matplotlib/axes/_base.py:1595–1605  ·  view source on GitHub ↗

Set the offset for the title either from :rc:`axes.titlepad` or from set_title kwarg ``pad``.

(self, title_offset_points)

Source from the content-addressed store, hash-verified

1593 return self.patch.set_facecolor(color)
1594
1595 def _set_title_offset_trans(self, title_offset_points):
1596 """
1597 Set the offset for the title either from :rc:`axes.titlepad`
1598 or from set_title kwarg ``pad``.
1599 """
1600 self.titleOffsetTrans = mtransforms.ScaledTranslation(
1601 0.0, title_offset_points / 72,
1602 self.get_figure(root=False).dpi_scale_trans)
1603 for _title in (self.title, self._left_title, self._right_title):
1604 _title.set_transform(self.transAxes + self.titleOffsetTrans)
1605 _title.set_clip_box(None)
1606
1607 def set_prop_cycle(self, *args, **kwargs):
1608 """

Callers 2

__clearMethod · 0.95
set_titleMethod · 0.80

Calls 3

get_figureMethod · 0.45
set_transformMethod · 0.45
set_clip_boxMethod · 0.45

Tested by

no test coverage detected