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

Class _Translation

lib/matplotlib/tests/test_axes.py:8530–8541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8528
8529
8530class _Translation(mtransforms.Transform):
8531 input_dims = 1
8532 output_dims = 1
8533
8534 def __init__(self, dx):
8535 self.dx = dx
8536
8537 def transform(self, values):
8538 return values + self.dx
8539
8540 def inverted(self):
8541 return _Translation(-self.dx)
8542
8543
8544@image_comparison(['secondary_xy.png'], style='mpl20',

Callers 2

invertedMethod · 0.85
test_secondary_xyFunction · 0.85

Calls

no outgoing calls

Tested by 2

invertedMethod · 0.68
test_secondary_xyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…