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

Method get_matrix

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

Source from the content-addressed store, hash-verified

502 __str__ = mtransforms._make_str_method("axes", "pad", "mode")
503
504 def get_matrix(self):
505 if self._invalid:
506 if self.mode == 'rlabel':
507 angle = (
508 np.deg2rad(self.axes.get_rlabel_position()
509 * self.axes.get_theta_direction())
510 + self.axes.get_theta_offset()
511 - np.pi / 2
512 )
513 elif self.mode == 'min':
514 angle = self.axes._realViewLim.xmin - np.pi / 2
515 elif self.mode == 'max':
516 angle = self.axes._realViewLim.xmax + np.pi / 2
517 self._t = (self.pad * np.cos(angle) / 72, self.pad * np.sin(angle) / 72)
518 return super().get_matrix()
519
520
521class RadialTick(maxis.YTick):

Callers

nothing calls this directly

Calls 4

get_rlabel_positionMethod · 0.80
get_theta_directionMethod · 0.80
get_theta_offsetMethod · 0.80
get_matrixMethod · 0.45

Tested by

no test coverage detected