| 70 | @pytest.mark.parametrize('suppressComposite', [False, True]) |
| 71 | @image_comparison(['figimage'], extensions=['png', 'pdf'], style='_classic_test') |
| 72 | def test_figimage(suppressComposite): |
| 73 | fig = plt.figure(figsize=(2, 2), dpi=100) |
| 74 | fig.suppressComposite = suppressComposite |
| 75 | x, y = np.ix_(np.arange(100) / 100.0, np.arange(100) / 100) |
| 76 | z = np.sin(x**2 + y**2 - x*y) |
| 77 | c = np.sin(20*x**2 + 50*y**2) |
| 78 | img = z + c/5 |
| 79 | |
| 80 | fig.figimage(img, xo=0, yo=0, origin='lower') |
| 81 | fig.figimage(img[::-1, :], xo=0, yo=100, origin='lower') |
| 82 | fig.figimage(img[:, ::-1], xo=100, yo=0, origin='lower') |
| 83 | fig.figimage(img[::-1, ::-1], xo=100, yo=100, origin='lower') |
| 84 | |
| 85 | |
| 86 | def test_image_python_io(): |