MCPcopy Index your code
hub / github.com/python/cpython / plot

Function plot

Lib/turtledemo/chaos.py:30–39  ·  view source on GitHub ↗
(fun, start, color)

Source from the content-addressed store, hash-verified

28 line(0, -0.1, 0, 1.1)
29
30def plot(fun, start, color):
31 pencolor(color)
32 x = start
33 jumpto(0, x)
34 pendown()
35 dot(5)
36 for i in range(N):
37 x=fun(x)
38 goto(i+1,x)
39 dot(5)
40
41def main():
42 reset()

Callers 1

mainFunction · 0.85

Calls 3

jumptoFunction · 0.85
dotFunction · 0.85
funFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…