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

Function test_colormap

lib/matplotlib/tests/test_streamplot.py:40–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38@image_comparison(['streamplot_colormap.png'], remove_text=True, style='mpl20',
39 tol=0.022)
40def test_colormap():
41 X, Y, U, V = velocity_field()
42 plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
43 cmap="autumn")
44 plt.colorbar()
45
46
47@image_comparison(['streamplot_linewidth.png'], remove_text=True, style='mpl20',

Callers

nothing calls this directly

Calls 2

velocity_fieldFunction · 0.85
colorbarMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…