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, 1.0, 100)
  plt.plot( x, np.sin(x) )
  plt.draw()
  plt.draw()
  q  = raw_input( 'anything: ')

I'm using the enthought python distribution for mac in ipython.  




-- 
View this message in context: 
http://old.nabble.com/Can%27t-force-draw-tp30107286p30107286.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to