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

Function test_pcolorargs_5205

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

Source from the content-addressed store, hash-verified

1406
1407
1408def test_pcolorargs_5205():
1409 # Smoketest to catch issue found in gh:5205
1410 x = [-1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5]
1411 y = [-1.5, -1.25, -1.0, -0.75, -0.5, -0.25, 0,
1412 0.25, 0.5, 0.75, 1.0, 1.25, 1.5]
1413 X, Y = np.meshgrid(x, y)
1414 Z = np.hypot(X, Y)
1415
1416 plt.pcolor(Z)
1417 plt.pcolor(list(Z))
1418 plt.pcolor(x, y, Z[:-1, :-1])
1419 plt.pcolor(X, Y, list(Z[:-1, :-1]))
1420
1421
1422@image_comparison(['pcolormesh'], remove_text=True, style='_classic_test',

Callers

nothing calls this directly

Calls 1

pcolorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…