problem with gnuplot in XP

2005-10-28 Thread Titi Anggono
Hi all, I made 2 arrays, which are i and uzuy (both are float). And I want to plot the graph between those arrays. I followed from the manual == from Gnuplot import Gnuplot, Data g=Gnuplot() results=Data(i,uzuy) g.plot(results) = here I got the message

need help with mod_python in RH 9

2005-06-21 Thread Titi Anggono
Hi all, I use apache2.0, mod_python 3.0, and python2.2.2. In /etc/httpd/conf.d/python.conf, I added following (as I read in the manual) AddHandler python-program .py PythonHandler mptest PythonDebug On and create mptest.py under directory /var/www/html/htdocs, (as I read in the manual) ---

Re: plot module

2005-07-12 Thread Titi Anggono
I just use Gnuplot for plot module. Maybe you can visit http://gnuplot-py.sourceforge.net/ or the mailing list http://lists.sourceforge.net/lists/listinfo/gnuplot-py-users --- "Shankar Iyer ([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking for documentation on the plot mo

installing vrmlexport module ??

2005-07-13 Thread Titi Anggono
Hi all, I've downloaded vrmlexport.py from: http://www.andrew.cmu.edu/user/mzk/vrmlexport/ and install it under /usr/lib/python2.2/lib-old directory using command: python vrmlexport.py I got the following error: = Traceback (most recent call last): Fi

Re: How to execute code when a module is imported ?

2005-08-01 Thread Titi Anggono
I tried >>>foo.codetoexecwhenloaded() and it worked --- Arthas <[EMAIL PROTECTED]> wrote: > How I do it? > > I wanna execute some code when a module is imported: > > -- foo.py -- > #!/usr/bin/env python > > def codetoexecwhenloaded(): > print "bar" > -- end of foo.py -- > > -- in console -- >

Re: py2exe: no exe produced?

2005-08-14 Thread Titi Anggono
I never use python2.4, I use python 2.3 and here is (maybe it works). For example, the hello.py is under directory C:\Python23\latihan\ and put the setup.py under that directory -- #setup.py from distutils.core import setup import py2exe setup(console=["hel

Tkinter and gnuplot module

2005-08-17 Thread Titi Anggono
Hi all, I have some questions: 1. Can we use Tkinter for web application such as Java ? 2. I use gnuplot.py module for interfacing with gnuplot in linux. Can we make the plot result shown in web ? I tried using cgi, and it didn't work. Thanks _

Some questions

2005-08-18 Thread Titi Anggono
Hi all, I have some questions: 1. Can we use Tkinter for web application such as Java ? 2. I use gnuplot.py module for interfacing with gnuplot in linux. Can we make the plot result shown in web ? I tried using cgi, and it didn't work. Thanks __

Re : how to show simulation at web

2005-06-06 Thread Titi Anggono
Here is my code in cgi. = #!/usr/bin/python print "Content-Type:text/plain\n\n" # python code here (create a simulation or graphics) The python code is ok when I run it in executable file .py. Friend told me to change the def