Es gibt eine Klasse matplotlib.axes.AxesSubplot, aber das Modul matplotlib.axes hat kein Attribut AxesSubplot
Der Code
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
print type(ax)
gibt die Ausgabe
<class 'matplotlib.axes.AxesSubplot'>
Dann den Code
import matplotlib.axes
matplotlib.axes.AxesSubplot
löst die Ausnahme aus
AttributeError: 'module' object has no attribute 'AxesSubplot'
Zusammenfassend gibt es eine Klassematplotlib.axes.AxesSubplot
, aber das Modulmatplotlib.axes
hat kein AttributAxesSubplot
. Was zu Hölle ist hier los?
Ich benutze Matplotlib 1.1.0 und Python 2.7.3.