X Tutup
Skip to content

Can't show images when plt.show() was executed #6306

@ghost

Description

Matplotlib version 1.4.3
Python version 2.7.* and 3.4.* is tried
Platform Linux(OpenSuse)

I install Matplotlib with command: pip install matplotlib

import scipy.misc
import matplotlib.pyplot as plt

lena = scipy.misc.lena()
acopy = lena.copy()
aview = lena.view()

plt.subplot(221)
plt.imshow(lena)

plt.subplot(222)
plt.imshow(acopy)

plt.subplot(223)
plt.imshow(aview)

aview.flat = 0

plt.subplot(224)
plt.imshow(aview)

plt.show()

When I run this program, there is no reflection.
There is no error in this process.

import scipy.misc
import matplotlib.pyplot as plt

lena = scipy.misc.lena()
acopy = lena.copy()
aview = lena.view()

plt.subplot(221)
plt.imshow(lena)

plt.subplot(222)
plt.imshow(acopy)

plt.subplot(223)
plt.imshow(aview)

aview.flat = 0

plt.subplot(224)
plt.imshow(aview)

plt.savefig('foo.png')

When I run this program, there is an new picture in the current folder

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup