Skip to content

Commit 2d56e75

Browse files
committed
MNT: At least it will run now
Not entirely clear on what the code at the bottom of lib/mpl_toolkits/axes_grid1/mpl_axes.py is supposed to do, but at least it will run now...
1 parent 740b2a0 commit 2d56e75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/axes_grid1/mpl_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def toggle(self, all=None, ticks=None, ticklabels=None, label=None):
151151

152152

153153
if __name__ == '__main__':
154-
fig = figure()
154+
import matplotlib.pyplot as plt
155+
fig = plt.figure()
155156
ax = Axes(fig, [0.1, 0.1, 0.8, 0.8])
156157
fig.add_axes(ax)
157158
ax.cla()

0 commit comments

Comments
 (0)