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

Method get_matrix

lib/matplotlib/projections/polar.py:167–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 __str__ = mtransforms._make_str_method("_scale_transform", "_limits")
166
167 def get_matrix(self):
168 # docstring inherited
169 if self._invalid:
170 limits_scaled = self._limits.transformed(self._scale_transform)
171 yscale = limits_scaled.ymax - limits_scaled.ymin
172 affine = mtransforms.Affine2D() \
173 .scale(0.5 / yscale) \
174 .translate(0.5, 0.5)
175 self._mtx = affine.get_matrix()
176 self._inverted = None
177 self._invalid = 0
178 return self._mtx
179
180
181class InvertedPolarTransform(mtransforms.Transform):

Callers 15

get_matrixMethod · 0.45
set_theta_offsetMethod · 0.45
get_theta_offsetMethod · 0.45
set_theta_directionMethod · 0.45
get_theta_directionMethod · 0.45
get_rlabel_positionMethod · 0.45
draw_path_collectionMethod · 0.45
test_uses_per_pathFunction · 0.45
test_title_padFunction · 0.45
test_rotateMethod · 0.45
test_rotate_aroundMethod · 0.45
test_scaleMethod · 0.45

Calls 3

translateMethod · 0.80
transformedMethod · 0.45
scaleMethod · 0.45

Tested by 15

test_uses_per_pathFunction · 0.36
test_title_padFunction · 0.36
test_rotateMethod · 0.36
test_rotate_aroundMethod · 0.36
test_scaleMethod · 0.36
test_skewMethod · 0.36
test_translateMethod · 0.36
test_scale_plus_otherMethod · 0.36
test_skew_plus_otherMethod · 0.36