Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=6874491 By: jiapei
Actually, I'm a newbie to Python, but just trying to run a simple python code. Using pydev in Eclipse 3.4.2 . I'm just trying the first code at http://wiki.aims.ac.za/mediawiki/index.php/Python:Gnuplot_module say: import Gnuplot gp = Gnuplot.Gnuplot(persist = 1) gp('set data style lines') data1 = [[0, 0], [1, 1], [2, 4], [3, 9], [4, 16]] # The first data set (a quadratic) data2 = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] # The second data set (a straight line) # Make the plot items plot1 = Gnuplot.PlotItems.Data(data1, with="lines", title="Quadratic") plot2 = Gnuplot.PlotItems.Data(data2, with="points 3", title=None) # No title gp.plot(plot1, plot2) However, at the first line of plotting, namely, plot1 = Gnuplot.PlotItems.Data(data1, with="lines", title="Quadratic") there is always a red error notification, which says: "Expected:)" And no more useful information. Can anybody help to explain why and how this happens? BTW, I did install Gnuplot-python from repository, and I have folders as jia...@jiapei-laptop:/usr/lib/python2.5/site-packages/Gnuplot$ ls demo.py funcutils.pyc gp_cygwin.py gp_macosx.pyc gp_unix.py __init__.pyc test.py demo.pyc _Gnuplot.py gp_cygwin.pyc gp_mac.py gp_unix.pyc PlotItems.py test.pyc Errors.py _Gnuplot.pyc gp_java.py gp_mac.pyc gp_win32.py PlotItems.pyc utils.py Errors.pyc gnuplot_Suites.py gp_java.pyc gp.py gp_win32.pyc termdefs.py utils.pyc funcutils.py gnuplot_Suites.pyc gp_macosx.py gp.pyc __init__.py termdefs.pyc jia...@jiapei-laptop:/usr/lib/python2.4/site-packages/Gnuplot$ ls demo.py funcutils.pyc gp_cygwin.py gp_macosx.pyc gp_unix.py __init__.pyc test.py demo.pyc _Gnuplot.py gp_cygwin.pyc gp_mac.py gp_unix.pyc PlotItems.py test.pyc Errors.py _Gnuplot.pyc gp_java.py gp_mac.pyc gp_win32.py PlotItems.pyc utils.py Errors.pyc gnuplot_Suites.py gp_java.pyc gp.py gp_win32.pyc termdefs.py utils.pyc funcutils.py gnuplot_Suites.pyc gp_macosx.py gp.pyc __init__.py termdefs.pyc And, I did designate python2.5 as the compiler. Please do help!! Regards JIA ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users