Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
Thanks. Unfortunately wx and tk backends are broken on my machine (but they may be easier to fix). I will file a bug report for the native backend bug. Nicolas On Oct 4, 2010, at 22:27 , Friedrich Romstedt wrote: > 2010/10/4 Nicolas Rougier : >> I'm trying to have animated plots using draw_

Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Friedrich Romstedt
2010/10/4 Nicolas Rougier : > I'm trying to have animated plots using draw_artist on mac os x and I got an > error with the following script: > > import numpy as np > import matplotlib.pyplot as plt > > plt.ion() > plt.figure() > subplot = plt.subplot(1,1,1) > axis = plt.imshow(np.random.random((1

[Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Nicolas Rougier
I'm trying to have animated plots using draw_artist on mac os x and I got an error with the following script: import numpy as np import matplotlib.pyplot as plt plt.ion() plt.figure() subplot = plt.subplot(1,1,1) axis = plt.imshow(np.random.random((10,10))) plt.draw() subplot.draw_artist(axis)