Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2cf412 commit a5138b9Copy full SHA for a5138b9
1 file changed
lib/matplotlib/tests/test_image.py
@@ -35,16 +35,16 @@ def test_figimage():
35
36
for suppressComposite in False, True:
37
fig = plt.figure(figsize=(2,2), dpi=100)
38
- fig.suppressComposite=suppressComposite
+ fig.suppressComposite = suppressComposite
39
x,y = np.ix_(np.arange(100.0)/100.0, np.arange(100.0)/100.0)
40
z = np.sin(x**2 + y**2 - x*y)
41
c = np.sin(20*x**2 + 50*y**2)
42
img = z + c/5
43
44
fig.figimage(img, xo=0, yo=0, origin='lower')
45
- fig.figimage(img, xo=0, yo=100, origin='upper')
+ fig.figimage(img[::-1,:], xo=0, yo=100, origin='lower')
46
fig.figimage(img[:,::-1], xo=100, yo=0, origin='lower')
47
- fig.figimage(img[:,::-1], xo=100, yo=100, origin='upper')
+ fig.figimage(img[::-1,::-1], xo=100, yo=100, origin='lower')
48
49
fig.savefig('figimage-%d' % int(suppressComposite), dpi=100)
50
0 commit comments