plot debugging problem

Sandy Sandy cde3 at live.com
Tue May 11 12:08:45 EDT 2010


Hi friends

pls help with debugging problem

the mutter is:

during debugging the  debug processes stacks when fig is created

for example, in code



import random



import matplotlib.pyplot as plt

from pylab import *





x= 23;

y = 111111;

print(23456)

plt.plot(range(10))



plot([1,2,3])

show()



print(11111111)



a=888



it is impossible after show() to continue debug

as stated in

Beginning Python Visualization - Crafting Visual Transformation Scripts 
(2009)

page  187



Note If you’re not using matplotlib interactively in Python, be sure

to call the function show() after all

graphs have been generated, as it enters a user interface main loop

that will stop execution of the rest of

your code. The reason behind this behavior is that matplotlib is

designed to be embedded in a GUI as well.

In Windows, if you’re working from interactive Python, you need only

issue show() once; close the figures

(or figures) to return to the shell. Subsequent plots will be drawn

automatically without issuing show(), and

you’ll be able to plot graphs interactively.



Best Regards

Sandy 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100511/71557e54/attachment.html>


More information about the Python-list mailing list