[SciPy-user] plotting questions (gplt and plt)

Christian Kristukat ckkart at hoc.net
Tue Sep 20 03:33:40 CDT 2005


Ruben Charles wrote:
> Hi,
> 
> I'm using Scipy on Debian Gnu/Linux. (python2.3-scipy) in a program
> that have to show plots but while i'm testing capabilities of the
> three possible options (gplt, plt an xplt) a couple of questions comes
> up.
> 
> --------------------------------------------------------------------------------------------------------------
> plt:
> 
> If a follow the steps of the plotting tutorial everything seems ok in
> the first try.
> 
> 
>>>>import gui_thread
>>>>gui_thread.start() # or gui_thread.wxPython_thread()
>>>>from scipy import plt
>>>>plt.plot((1,2,3))
> 
> 
> 
> But if i close the Plot frame (manually with the cursor) and try to plot again
> 
> 
>>>>plt.plot((1,2,3))
> 
> 
> 
> The interpreter shows a message: "The C++ part of the code has been
> deleted" and i can´t plot again without exit the interpreter and back
> again.
> 
> 
> How i can solve that?
> 
> ----------------------------------------------------------------------------------------------------------------
> 
> gplt (gnuplot):
> 
> If i create a plot with the Gnuplot program the resulting plot has
> responses to mouse events and shows coordinates in the window but if i
> create a plot in python
> 
> gplt.plot((1,2,3))
> 
> The window have not the same response to mouse events (no response at all).
> 
> How i can give the same responses?

Just in case you haven't heard about matplotlib (matplotlib.sf.net) you should 
try that too. There's heavy development going on and it has a very active 
mailing list.

Christian



More information about the SciPy-user mailing list