|
From: Sandy Y. <cd...@li...> - 2010-05-17 14:48:59
|
Hello friends, no body can answer on first obvious question of Matplotlib???!!!!! Sandy > From: mat...@li... > Subject: Matplotlib-users Digest, Vol 48, Issue 19 > To: mat...@li... > Date: Thu, 13 May 2010 18:18:52 +0000 > > Send Matplotlib-users mailing list submissions to > mat...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > or, via email, send a message with subject or body 'help' to > mat...@li... > > You can reach the person managing the list at > mat...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Matplotlib-users digest..." > > > Today's Topics: > > 1. debugging process gets stuck with matpltlib after show() > (Sandy Sandy) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 13 May 2010 23:18:42 +0500 > From: Sandy Sandy <cd...@li...> > Subject: [Matplotlib-users] debugging process gets stuck with > matpltlib after show() > To: <mat...@li...> > Message-ID: <COL...@ph...> > Content-Type: text/plain; charset="windows-1252" > > > > > Hi all, > I am new born in Python ( 1 week old) > > > > Can you pls help to understand the basic concept of > matpltlib interacting with Python > > > > the mutter is: > > during debugging the debug processes stacks when fig is created > > for example, in code > > > > > > 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 in any IDE for example Wingwar > or pythonxy > > 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. > > > > > > > > > > I tried the code > > > > > > with threads > > as suggested in > > http://matplotlib.sourceforge.net/users/shell.html > > > > code > taken from people > from wingware > > http://www.wingware.com/doc/howtos/matplotlib > > > > > > from threading import Timer > > t = Timer(0, show) > > t.start() > > > > but still debugging process gets > stuck... > > > import > matplotlib as mpl > > from > pylab import plot,show,close,ion > > x > = range(10) > > plot(x) > > 'show()' > > from > threading import Timer > > t > = Timer(0, show) > > t.start() > > 'ion() > the same result with or not' > > a > = 1222233 > > y > = [2, 8, 3, 9, 4] > > plot(y) > > > > zz= > 12346 > > print(44444) > > > > Best Regards > > Sandy > > > _________________________________________________________________ > Hotmail: Trusted email with Microsoft?s powerful SPAM protection. > https://signup.live.com/signup.aspx?id=60969 > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > > > > ------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > End of Matplotlib-users Digest, Vol 48, Issue 19 > ************************************************ _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 |