()
| 1471 | |
| 1472 | @image_comparison(["nonuniform_logscale.png"], style="mpl20") |
| 1473 | def 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…