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

Function f

galleries/examples/color/color_cycle_default.py:15–17  ·  view source on GitHub ↗

A nice sigmoid-like parametrized curve, ending approximately at *a*.

(x, a)

Source from the content-addressed store, hash-verified

13
14
15def f(x, a):
16 """A nice sigmoid-like parametrized curve, ending approximately at *a*."""
17 return 0.85 * a * (1 / (1 + np.exp(-x)) + 0.2)
18
19
20fig, ax = plt.subplots()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected