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

Function test_lslw_bcast

lib/matplotlib/tests/test_collections.py:688–698  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

686
687@mpl.style.context('default')
688def test_lslw_bcast():
689 col = mcollections.PathCollection([])
690 col.set_linestyles(['-', '-'])
691 col.set_linewidths([1, 2, 3])
692
693 assert col.get_linestyles() == [(0, None)] * 6
694 assert col.get_linewidths() == [1, 2, 3] * 2
695
696 col.set_linestyles(['-', '-', '-'])
697 assert col.get_linestyles() == [(0, None)] * 3
698 assert (col.get_linewidths() == [1, 2, 3]).all()
699
700
701def test_set_wrong_linestyle():

Callers

nothing calls this directly

Calls 1

get_linewidthsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…