Есть класс matplotlib.axes.AxesSubplot, но модуль matplotlib.axes не имеет атрибута AxesSubplot
Код
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
print type(ax)
дает вывод
<class 'matplotlib.axes.AxesSubplot'>
Тогда код
import matplotlib.axes
matplotlib.axes.AxesSubplot
поднимает исключение
AttributeError: 'module' object has no attribute 'AxesSubplot'
Подводя итог, есть классmatplotlib.axes.AxesSubplot
, но модульmatplotlib.axes
не имеет атрибутаAxesSubplot
, Что на земле происходит?
Я использую Matplotlib 1.1.0 и Python 2.7.3.