Hello friends,
no body can answer on first obvious question of Matplotlib!!!
Sandy
···
From: matplotlib-users-request@lists.sourceforge.net
Subject: Matplotlib-users Digest, Vol 48, Issue 19
To: matplotlib-users@lists.sourceforge.net
Date: Thu, 13 May 2010 18:18:52 +0000Send Matplotlib-users mailing list submissions to
matplotlib-users@lists.sourceforge.netTo subscribe or unsubscribe via the World Wide Web, visit
matplotlib-users List Signup and Options
or, via email, send a message with subject or body ‘help’ to
matplotlib-users-request@…563…eforge.netYou can reach the person managing the list at
matplotlib-users-owner@lists.sourceforge.netWhen replying, please edit your Subject line so it is more specific
than “Re: Contents of Matplotlib-users digest…”Today’s Topics:
- debugging process gets stuck with matpltlib after show()
(Sandy Sandy)
Message: 1
Date: Thu, 13 May 2010 23:18:42 +0500
From: Sandy Sandy <cde3@…2134…>
Subject: [Matplotlib-users] debugging process gets stuck with
matpltlib after show()
To: matplotlib-users@lists.sourceforge.net
Message-ID: <COL116-W25CCFEBC9E60E3970A7475F2FC0@…520…>
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 Pythonthe 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 pythonxyas 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 wingwareUsing Wing with Matplotlib - Wing Python IDE
from threading import Timer
t = Timer(0, show)
t.start()
but still debugging process gets
stuck…import
matplotlib as mplfrom
pylab import plot,show,close,ionx
= range(10)plot(x)
‘show()’
from
threading import Timert
= Timer(0, show)t.start()
‘ion()
the same result with or not’a
= 1222233y
= [2, 8, 3, 9, 4]plot(y)
zz=
12346print(44444)
Best Regards
Sandy
Hotmail: Trusted email with Microsoft?s powerful SPAM protection.
Microsoft account
-------------- next part --------------
An HTML attachment was scrubbed…
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and OptionsEnd of Matplotlib-users Digest, Vol 48, Issue 19
Hotmail: Powerful Free email with security by Microsoft. Get it now.