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

Function test_marker_init_transforms

lib/matplotlib/tests/test_marker.py:213–218  ·  view source on GitHub ↗

Test that initializing marker with transform is a simple addition.

()

Source from the content-addressed store, hash-verified

211
212
213def test_marker_init_transforms():
214 """Test that initializing marker with transform is a simple addition."""
215 marker = markers.MarkerStyle("o")
216 t = Affine2D().translate(1, 1)
217 t_marker = markers.MarkerStyle("o", transform=t)
218 assert marker.get_transform() + t == t_marker.get_transform()
219
220
221def test_marker_init_joinstyle():

Callers

nothing calls this directly

Calls 3

get_transformMethod · 0.95
Affine2DClass · 0.90
translateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…