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

Function test_rgba_markers

lib/matplotlib/tests/test_axes.py:5328–5341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5326
5327@image_comparison(['rgba_markers'], remove_text=True, style='_classic_test')
5328def test_rgba_markers():
5329 fig, axs = plt.subplots(ncols=2)
5330 rcolors = [(1, 0, 0, 1), (1, 0, 0, 0.5)]
5331 bcolors = [(0, 0, 1, 1), (0, 0, 1, 0.5)]
5332 alphas = [None, 0.2]
5333 kw = dict(ms=100, mew=20)
5334 for i, alpha in enumerate(alphas):
5335 for j, rcolor in enumerate(rcolors):
5336 for k, bcolor in enumerate(bcolors):
5337 axs[i].plot(j+1, k+1, 'o', mfc=bcolor, mec=rcolor,
5338 alpha=alpha, **kw)
5339 axs[i].plot(j+1, k+3, 'x', mec=rcolor, alpha=alpha, **kw)
5340 for ax in axs:
5341 ax.axis([-1, 4, 0, 5])
5342
5343
5344@image_comparison(['mollweide_grid.png'], remove_text=True, style='_classic_test')

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
plotMethod · 0.45
axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…