Re: [Matplotlib-users] Can't force draw

2010-11-05 Thread starz1010101
Fixed by switching the backend from WXAgg to MacOSX. starz1010101 wrote: > > I can't force pyplot to draw in the middle a function. For example, this > function does not plot the sine before the user prompt, only after the > entire function executes: > > import matplotlib.pyplot as plt > im

[Matplotlib-users] Can't force draw

2010-11-01 Thread starz1010101
I can't force pyplot to draw in the middle a function. For example, this function does not plot the sine before the user prompt, only after the entire function executes: import matplotlib.pyplot as plt import numpy as np def plot_now(): plt.ion() plt.figure() x = 2*np.pi*np.linspace(0.0,