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

Method __init__

lib/matplotlib/projections/polar.py:304–315  ·  view source on GitHub ↗
(self, axes, *args, **kwargs)

Source from the content-addressed store, hash-verified

302 """
303
304 def __init__(self, axes, *args, **kwargs):
305 self._text1_translate = mtransforms.ScaledTranslation(
306 0, 0, axes.get_figure(root=False).dpi_scale_trans)
307 self._text2_translate = mtransforms.ScaledTranslation(
308 0, 0, axes.get_figure(root=False).dpi_scale_trans)
309 super().__init__(axes, *args, **kwargs)
310 self.label1.set(
311 rotation_mode='anchor',
312 transform=self.label1.get_transform() + self._text1_translate)
313 self.label2.set(
314 rotation_mode='anchor',
315 transform=self.label2.get_transform() + self._text2_translate)
316
317 def _apply_params(self, **kwargs):
318 super()._apply_params(**kwargs)

Callers 8

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 3

get_figureMethod · 0.45
setMethod · 0.45
get_transformMethod · 0.45

Tested by

no test coverage detected