Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ test_label
Function
test_label
lib/matplotlib/tests/test_sankey.py:14–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
13
14
def
test_label():
15
s = Sankey(flows=[0.25], labels=[
'First'
], orientations=[-1])
16
assert s.diagrams[0].texts[0].get_text() ==
'First\n0.25'
17
18
19
def
test_format_using_callable():
Callers
nothing calls this directly
Calls
2
Sankey
Class · 0.90
get_text
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…