hi, I have a problem with the interactive mode. when I try to use a
plot.show() the program opens another window with nothing. do I have to put
something before?
this is the code:
print 'Bienvenido al juego de artilleria '
print 'Ingrese el nomre de los jugadores '
jugador11 = raw_input('Primer jugador: ') +'\n'
jugador22 = raw_input('Segundo jugador: ') +'\n'
print '\n'
contador = 1
terreno = []
i = 0
x1 = random.randint(101)
terreno.append(x1)
while i < 8001:
x2 = random.randint(101)
if (terreno[i]-3) < x2 and x2 < (terreno[i]+3):
terreno.append(x2)
i += 1
plot.ion()
pyplot.plot( terreno, '-g')
pyplot.plot( 100, terreno[100],'sb')
pyplot.plot( 7900, terreno[7900], '^k')
pyplot.axis([0,8000,-30,200])
pyplot.show()
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.