multiple call to show not working in matplotlib

mru mrunalu1 at gmail.com
Thu Jul 7 01:10:44 CEST 2011


Hi,

I am facing some problem. I have made multiple calls to show()
function in a sinlge program. as below. Before the first call I
plotted x vs y . then i called show. execution halted until i closed
the window. Once I closed the window, execution again progressed and
even passed second show(), but the dispaly did not appear.

Can anyone please suggest me how to go about solving this issue.


from pylab import *
from matplotlib import pyplot as p
import scipy
import pylab as pl
import matplotlib.pyplot as plt
fig=pl.figure()
ax=fig.add_subplot(111)
x=arange(10)
y=x*2
ax.plot(x,y)
show()


print 'passed the border'
x=arange(10)
y=sin(x)
ax.plot(x,y)
show()
print 'passed the second show'



More information about the Python-list mailing list