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

Function test_triplot_label

lib/matplotlib/tests/test_triangulation.py:1335–1344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1333
1334
1335def test_triplot_label():
1336 x = [0, 2, 1]
1337 y = [0, 0, 1]
1338 data = [[0, 1, 2]]
1339 fig, ax = plt.subplots()
1340 lines, markers = ax.triplot(x, y, data, label='label')
1341 handles, labels = ax.get_legend_handles_labels()
1342 assert labels == ['label']
1343 assert len(handles) == 1
1344 assert handles[0] is lines
1345
1346
1347def test_tricontour_path():

Callers

nothing calls this directly

Calls 2

subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…