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

Method _apply_params

lib/matplotlib/projections/polar.py:317–325  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

315 transform=self.label2.get_transform() + self._text2_translate)
316
317 def _apply_params(self, **kwargs):
318 super()._apply_params(**kwargs)
319 # Ensure transform is correct; sometimes this gets reset.
320 trans = self.label1.get_transform()
321 if not trans.contains_branch(self._text1_translate):
322 self.label1.set_transform(trans + self._text1_translate)
323 trans = self.label2.get_transform()
324 if not trans.contains_branch(self._text2_translate):
325 self.label2.set_transform(trans + self._text2_translate)
326
327 def _update_padding(self, pad, angle):
328 padx = pad * np.cos(angle) / 72

Callers

nothing calls this directly

Calls 3

get_transformMethod · 0.45
contains_branchMethod · 0.45
set_transformMethod · 0.45

Tested by

no test coverage detected