2013-04-23 20 views
5

Ich habe ein Skript, das PNG-Bilder aus Protokolldaten erstellt. Es funktioniert gut, auf einer Produktionsmaschine, aber jetzt spuckt Fehler auf einem neuen Feld, während diese Linie Verarbeitung:Fehler beim Ausführen von matplotlib.pyplot.subplots()

fig, ax = plt.subplots(1,1, figsize=(20,14)) 


AttributeError: 'module' object has no attribute 'subplots' 

ich Probleme in Version Unterschiede in verschiedenen Modulen vermuten. Irgendwelche Einsichten?

+1

Ich nehme an, Sie haben Matplotlib als PLT importiert? – Kitchi

+2

Welche Versionen von Python/MPL laufen Sie? Wie wird "plt" in Ihren Code importiert? –

+0

import matplotlib.pyplot as plt –

Antwort

1

Neueste Version von Ipython hat dieses Problem nicht. Als Antwort darauf, wie von @Jay Bosamiya vorgeschlagen, um diese Frage zu beantworten.