matplotlib in openSUSE

2019-09-17 18:32发布

问题:

I'm trying to use a python script under openSUSE. I did this script under ubuntu and it work well I have installed matplotlib and when I run the script it seems to work (I can do print "It go until here" at any place of the script it work.

But it never open the matplotlib windows....

EDIT

The shortest program that do not work is :

import matplotlib.pyplot as plt
a=range(10)
plt.plot(a)
plt.show()

I think the problem come from using matplotlib under openSUSE OS... but I do not understand exactly why .... there is no error message....