AttributeError: TextWithDash instance has no attribute '_mytext'

Hi all,

I tried to reproduce the Contour3D plot http://www.scipy.org/Cookbook/Matplotlib/mplot3D.

from numpy import *
import pylab as p
import mpl3d.mplot3d as p3

p.matplotlib.__version__
# in mplt3D change:
# levels, colls = self.contour(X, Y, Z, 20)
# to:
# C = self.contour(X, Y, Z, *args, **kwargs)
# levels, colls = (C.levels, C.collections)

delta = 0.025
x = arange(-3.0, 3.0, delta)
y = arange(-2.0, 2.0, delta)
X, Y = p.meshgrid(x, y)
Z1 = p.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
Z2 = p.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
# difference of Gaussians
Z = 10.0 * (Z2 - Z1)
fig=p.figure()
ax = p3.Axes3D(fig)
ax.contour3D(X,Y,Z)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
fig.add_axes(ax)
p.show()

python -i contour3.py --verbose-helpful
matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl-data
$HOME=/home/nwagner
loaded rc file /home/nwagner/matplotlibrc
matplotlib version 0.87.3
verbose.level helpful
interactive is False
platform is linux2
numerix numpy 0.9.9.2726
font search path ['/usr/lib64/python2.4/site-packages/matplotlib/mpl-data']
CONFIGDIR=/home/nwagner/.matplotlib
loaded ttfcache file /home/nwagner/.matplotlib/ttffont.cache
backend GTKAgg version 2.8.0
Found dvipng version 1.5
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 284, in expose_event
    self._render_figure(self._pixmap, w, h)
  File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 73, in _render_figure
    FigureCanvasAgg.draw(self)
  File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 391, in draw
    self.figure.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line 532, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/mpl3d/mplot3d.py", line 714, in draw
    self.w_xaxis.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/mpl3d/mplot3d.py", line 613, in draw
    tick.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/axis.py", line 161, in draw
    if self.label1On: self.label1.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/text.py", line 1166, in draw
    self.update_coords(renderer)
  File "/usr/lib64/python2.4/site-packages/mpl3d/mplot3d.py", line 411, in update_coords
    return text_update_coords(self, renderer)
  File "/usr/lib64/python2.4/site-packages/mpl3d/mplot3d.py", line 102, in text_update_coords
    we = self._mytext.get_window_extent(renderer=renderer)
AttributeError: TextWithDash instance has no attribute '_mytext'

Nils