Ich programmiere schon recht lange mit Python und habe mir neulich auf meinem neuen Rechner Anaconda installiert. Damit habe ich dann auch die Python Version 3.8 und Spyder 4. Vorher hatte ich Python 3.5 und Spyder3. In der neueren Version scheint beim Plotten mit matplotlib das plt.show() keinen nutzen mehr zu haben.
Unter Python 3.5 sah mein Code noch so aus:
Code: Alles auswählen
import matplotlib.pyplot as plt
a = [1, 2, 3]
b = [5, 3, 9]
plt.plot(a, b)
plt.plot(b, a)
plt.show()
Code: Alles auswählen
import matplotlib.pyplot as plt
a = [1, 2, 3]
b = [5, 3, 9]
plt.plot(a, b)
plt.plot(b, a)
Grüße Conan