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

Function test_nonuniform_logscale

lib/matplotlib/tests/test_image.py:1473–1490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1471
1472@image_comparison(["nonuniform_logscale.png"], style="mpl20")
1473def test_nonuniform_logscale():
1474 _, axs = plt.subplots(ncols=3, nrows=1)
1475
1476 for i in range(3):
1477 ax = axs[i]
1478 im = NonUniformImage(ax)
1479 im.set_data(np.arange(1, 4) ** 2, np.arange(1, 4) ** 2,
1480 np.arange(9).reshape((3, 3)))
1481 ax.set_xlim(1, 16)
1482 ax.set_ylim(1, 16)
1483 ax.set_box_aspect(1)
1484 if i == 1:
1485 ax.set_xscale("log", base=2)
1486 ax.set_yscale("log", base=2)
1487 if i == 2:
1488 ax.set_xscale("log", base=4)
1489 ax.set_yscale("log", base=4)
1490 ax.add_image(im)
1491
1492
1493@image_comparison(['rgba_antialias.png'], style='mpl20', remove_text=True)

Callers

nothing calls this directly

Calls 9

set_dataMethod · 0.95
NonUniformImageClass · 0.90
set_xscaleMethod · 0.80
add_imageMethod · 0.80
subplotsMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45
set_box_aspectMethod · 0.45
set_yscaleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…