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

Method _text_shift

lib/matplotlib/quiver.py:400–406  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

398 self._dpi_at_last_init = self.Q.axes.get_figure(root=True).dpi
399
400 def _text_shift(self):
401 return {
402 "N": (0, +self.labelsep),
403 "S": (0, -self.labelsep),
404 "E": (+self.labelsep, 0),
405 "W": (-self.labelsep, 0),
406 }[self.labelpos]
407
408 @martist.allow_rasterization
409 def draw(self, renderer):

Callers 1

drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected