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

Method _setup_textpos

lib/matplotlib/backends/backend_pdf.py:2146–2154  ·  view source on GitHub ↗
(self, x, y, angle, oldx=0, oldy=0, oldangle=0)

Source from the content-addressed store, hash-verified

2144 Op.grestore)
2145
2146 def _setup_textpos(self, x, y, angle, oldx=0, oldy=0, oldangle=0):
2147 if angle == oldangle == 0:
2148 self.file.output(x - oldx, y - oldy, Op.textpos)
2149 else:
2150 angle = math.radians(angle)
2151 self.file.output(math.cos(angle), math.sin(angle),
2152 -math.sin(angle), math.cos(angle),
2153 x, y, Op.textmatrix)
2154 self.file.output(0, 0, Op.textpos)
2155
2156 def draw_mathtext(self, gc, x, y, s, prop, angle):
2157 # TODO: fix positioning and encoding

Callers 3

draw_mathtextMethod · 0.95
draw_texMethod · 0.95
draw_textMethod · 0.95

Calls 1

outputMethod · 0.80

Tested by

no test coverage detected