Pythonコンソールを実行して実行すると
import matplotlib
matplotlib.__version__
import matplotlib.gridspec as gs
matplotlib のバージョンは 1.2.1 です。
そうすればhelp(gs)
、Gridspec クラスが表示されます。
ただし、次のコード
import matplotlib
import matplotlib.gridspec as gs
g = gs.Gridspec(1,1)
エラーが発生します:
AttributeError: 'module' object has no attribute 'Gridspec'
新しい Gridspec オブジェクトを作成できないのはなぜですか?