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

Method test_scatter_unfilled

lib/matplotlib/tests/test_axes.py:3011–3019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3009 plt.scatter([1, 2], [3, 4], c=[4, 5], **kwargs)
3010
3011 def test_scatter_unfilled(self):
3012 coll = plt.scatter([0, 1, 2], [1, 3, 2], c=['0.1', '0.3', '0.5'],
3013 marker=mmarkers.MarkerStyle('o', fillstyle='none'),
3014 linewidths=[1.1, 1.2, 1.3])
3015 assert coll.get_facecolors().shape == (0, 4) # no facecolors
3016 assert_array_equal(coll.get_edgecolors(), [[0.1, 0.1, 0.1, 1],
3017 [0.3, 0.3, 0.3, 1],
3018 [0.5, 0.5, 0.5, 1]])
3019 assert_array_equal(coll.get_linewidths(), [1.1, 1.2, 1.3])
3020
3021 @mpl.style.context('default')
3022 def test_scatter_unfillable(self):

Callers

nothing calls this directly

Calls 2

get_linewidthsMethod · 0.80
scatterMethod · 0.45

Tested by

no test coverage detected