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

Function side

galleries/examples/specialty_plots/sankey_links.py:16–25  ·  view source on GitHub ↗

Generate a side chain.

(sankey, n=1)

Source from the content-addressed store, hash-verified

14
15
16def side(sankey, n=1):
17 """Generate a side chain."""
18 prior = len(sankey.diagrams)
19 for i in range(0, 2*n, 2):
20 sankey.add(flows=[1, -1], orientations=[-1, -1],
21 patchlabel=str(prior + i),
22 prior=prior + i - 1, connect=(1, 0), alpha=0.5)
23 sankey.add(flows=[1, -1], orientations=[1, 1],
24 patchlabel=str(prior + i + 1),
25 prior=prior + i, connect=(1, 0), alpha=0.5)
26
27
28def corner(sankey):

Callers 1

sankey_links.pyFile · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…