|
From: Dr. P. M. F. <pfe...@ve...> - 2009-08-23 06:19:29
|
The following trivial program is supposed to generate one plot per key press until the user presses 'q'. Instead, nothing is displayed until the user presses 'q'. Any suggestions will be appreciated. from os import sys from matplotlib import * from numpy.random import rand while True: z= rand(20,20) fig= pyplot.figure(figsize=(8,8), dpi=120) pyplot.imshow(z) pyplot.show() chr= sys.stdin.read(1) if chr=='q': sys.exit(0) -- View this message in context: http://www.nabble.com/how-to-generate-one-plot-per-key-press--tp25100658p25100658.html Sent from the matplotlib - users mailing list archive at Nabble.com. |