MCPcopy Create free account
hub / github.com/shapely/shapely / add_origin

Function add_origin

docs/code/figures.py:18–22  ·  view source on GitHub ↗
(ax, geom, origin)

Source from the content-addressed store, hash-verified

16
17
18def add_origin(ax, geom, origin):
19 x, y = xy = affinity.interpret_origin(geom, origin, 2)
20 ax.plot(x, y, 'o', color=GRAY, zorder=1)
21 ax.annotate(str(xy), xy=xy, ha='center',
22 textcoords='offset points', xytext=(0, 8))
23
24
25def set_limits(ax, x0, xN, y0, yN):

Callers 3

rotate.pyFile · 0.90
scale.pyFile · 0.90
skew.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…