Re: xplt documentation
First you can try help("scipy.xplt") help("scipy.xplt.plot") to get further information. As xplt is based on pygist this document
http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/python/pygist_html/pygist....
might help you further.
You wrote that you would like to use xplt interactively - I am not sure what you mean, e.g. the following works nicely
In [1]: from scipy.xplt import * In [2]: x=arange(0.0,1.0,0.1) In [3]: plg(x*x,x)
(the prompt is from Ipython, but the normal python will do as well, though you'll miss all the nice features of Ipython ;-). You can still use the mouse to zoom in and such. To capture a mouse click you can use the mouse function of xplt.
Hope this helps.
Arnd
On Wed, 28 Apr 2004, Nadav Horesh wrote:
I just started to play with xplt under linux. The package seems to fill some of the missing features in gnuplot(gplt) 4.0. The problem I have is that I can not use it interactively unless I run a loop of xplt.pyg_pending(). Is there a "decent" way to make an interactive xplt session? Where can I find some useful documentation beside the plotting tutorial?
Nadav.
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
Thank you for the references.. The problem with the need to loop over xplt.pyg_pending(), is specific to IDLE. The problem with plt and xplt is that they don't leave happily with IDLE, which is my favorite (I have experience with with pycrust and Ipython). Is there any workaround or this is a fundamental issue of Tkinter? Nadav.
On Thu, 29 Apr 2004, Nadav Horesh wrote: [...]
Thank you for the references.. The problem with the need to loop over xplt.pyg_pending(), is specific to IDLE.
Hmm - you did not mention IDLE in your original post - did you ? ;-) A year ago or so we evaluated several of the interactive shells and because of what you observed we had to leave IDLE aside (in addition to the fact that several copies of IDLE could not run simultantiously one one linux box ...). So I am happy to hear that there is a work-around ;-)
The problem with plt and xplt is that they don't leave happily with IDLE, which is my favorite (I have experience with with pycrust and Ipython). Is there any workaround or this is a fundamental issue of Tkinter?
I don't know - maybe there is a way to do this (maybe you will find something under `gui_thread` or in the context of matplotlib, http://matplotlib.sourceforge.net/ where the use of plotting packages from the interactive prompt is discussed (though I don't remember that IDLE was mentioned there) Good luck, Arnd
"Arnd" == Arnd Baecker <arnd.baecker@web.de> writes:
>> The problem with plt and xplt is that they don't leave happily >> with IDLE, which is my favorite (I have experience with with >> pycrust and Ipython). Is there any workaround or this is a >> fundamental issue of Tkinter? Arnd> I don't know - maybe there is a way to do this (maybe you Arnd> will find something under `gui_thread` or in the context of Arnd> matplotlib, http://matplotlib.sourceforge.net/ where the use Arnd> of plotting packages from the interactive prompt is Arnd> discussed (though I don't remember that IDLE was mentioned Arnd> there) With the Tkinter backend, we have some luck if idle is launched with -n. There is some discussion of IDE/Tkinter (at least TkAgg) compatibility at http://matplotlib.sourceforge.net/backends.html#TkAgg. The issue of GUI conflicts and interactive use is discussed more generally at http://matplotlib.sourceforge.net/interactive.html. On http://www.ferg.org/thinking_in_tkinter, the effbot talks a little bit about tkinter gui conflicts. JDH
participants (3)
-
Arnd Baecker -
John Hunter -
Nadav Horesh