Hi all,

I have some old custom code for generating videos from matplotlib (not 
using the animation module). It used to work, but is now failing.
Here is what I am doing:

-------------------
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_subplot(111)
im = ax.imshow(np.zeros((100, 100)))
fig.canvas.draw()
ax.draw_artist(im)
------------------

... and draw_artist from axes.py then gives me an AssertionError because 
no renderer is found (assert self._cachedRenderer is not None).

Right now I am using matplotlib 1.0.1 and I think that the above used to 
work with older versions in matplotlib. See e.g. 
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg06598.html

Any ideas?

Cheers
Andi





------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to