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

Function test_alpha_validation

lib/matplotlib/tests/test_collections.py:1136–1142  ·  view source on GitHub ↗
(pcfunc)

Source from the content-addressed store, hash-verified

1134
1135
1136def test_alpha_validation(pcfunc):
1137 # Most of the relevant testing is in test_artist and test_colors.
1138 fig, ax = plt.subplots()
1139 pc = getattr(ax, pcfunc)(np.arange(12).reshape((3, 4)))
1140 with pytest.raises(ValueError, match="^Data array shape"):
1141 pc.set_alpha([0.5, 0.6])
1142 pc.update_scalarmappable()
1143
1144
1145def test_legend_inverse_size_label_relationship():

Callers

nothing calls this directly

Calls 3

update_scalarmappableMethod · 0.80
subplotsMethod · 0.45
set_alphaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…