Re: Looking for a pure Python chart drawing module
John Nagle wrote: > I'm looking for something that can draw simple bar and pie charts > in Python. I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. > > Here's the list from the Python wiki at > "http://wiki.python.org/moin/NumericAndScientific/Plotting";. > Almost all the options are really wrappers for some other > package in C/C++. [snip] > So, for pure Python, Pychart is it. I'll have to try it and see if it still > works. I don't think anyone has mentioned reportlab... It can plot charts I think, though last time I used it I plotted stuff by hand as I wanted exact control over the layout. I'm not sure of the dependencies though so may not be suitable for your purposes. http://www.reportlab.org/rl_toolkit.html -- Nick Craig-Wood -- http://www.craig-wood.com/nick -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On 2009-09-18, Chris Withers wrote: > Grant Edwards wrote: >> On 2009-09-16, Alan G Isaac wrote: >> >>> Tkinter is part of the Python standard library: >> >> That doesn't mean you can depend on it being available. It >> doesn't get installed by default on some Linux distros. > > That's 'cos some linux distros feel the need to destroy > python's packaging What do you mean by "Python's packaging"? I used to build python from sources, and tcl/tk support was optional then as well. > for their own silly reasons... > > Take them out and shoot them. I think you're overstating that a bit. AFAIK, when building Python from sources, tcl/tk support has always been optional as well. -- Grant Edwards grante Yow! Being a BALD HERO at is almost as FESTIVE as a visi.comTATTOOED KNOCKWURST. -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Piet van Oostrum writes: >> Chris Withers (CW) wrote: > >>CW> John Nagle wrote: That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is a C++ library. I'm trying hard to avoid dependencies on binary libraries with limited support. Builds exist only for Python 2.4 and 2.5. > >>CW> Huh? > >>CW> Matplotlib is a pretty phenomenal charting library, I use it >>CW> routinely on both windows and linux, I've never had any >>CW> compilation problems on Linux and never even needed to compile >>CW> it on Windows. > >>CW> Writing if off as "just a wrapper for antigrain" is pretty >>CW> insulting... > > *You* made up the "just" in that quote. The point was that the OP > wants something that only needs Python. matplotlib can be used to generate .ps, .pdf and .svg files (all vectorial formats) without resorting to Antigrain Antigrain is used only in rasterizing, due to its better capabilities in the field of antialiasing, when you use matplotlib with an interactive backend; of course, if you're truly dispising Antigrain and are happy with a coarser display you can select interactive backends that DO NOT use Antigrain that's for the Antigrain wrapper otoh, if the OP intended a plotting library that does not use binary modules at all (then his reference to Antigrain was mostly fogging), then matplotlib is not for him % find matplotlib-0.99.0/| grep -v agg24 | grep '\.cpp$' | wc -l 23 % find matplotlib-0.99.0/| grep -v agg24 | grep '\.c$' | wc -l 5 % -- I wish we'd come to our senses and see there is no truth In those who promote the confusion for this ever changing mood. (people get ready people get ready people get ready people get ready) -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On Sep 15, 1:25 pm, John Nagle wrote: > I'm looking for something that can draw simple bar and pie charts > in Python. I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. http://skimpygimpy.sourceforge.net includes charts and canvases that generate PNG using pure Python. Honestly, they aren't very pretty though :(. Also, if you are looking for web display also take a look at WHIFF Flash charts (using either open flash charts or amcharts) -- these are very pretty. http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts -- Aaron Watters === Tee front: 80 minutes / 16 positions / no protection back: Rutgers Rugby -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
> Chris Withers (CW) wrote: >CW> John Nagle wrote: >>> That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is >>> a C++ library. I'm trying hard to avoid dependencies on binary libraries >>> with limited support. Builds exist only for Python 2.4 and 2.5. >CW> Huh? >CW> Matplotlib is a pretty phenomenal charting library, I use it routinely on >CW> both windows and linux, I've never had any compilation problems on Linux >CW> and never even needed to compile it on Windows. >CW> Writing if off as "just a wrapper for antigrain" is pretty insulting... *You* made up the "just" in that quote. The point was that the OP wants something that only needs Python. -- Piet van Oostrum URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: p...@vanoostrum.org -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Grant Edwards wrote: On 2009-09-16, Alan G Isaac wrote: Tkinter is part of the Python standard library: That doesn't mean you can depend on it being available. It doesn't get installed by default on some Linux distros. That's 'cos some linux distros feel the need to destroy python's packaging for their own silly reasons... Take them out and shoot them. Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle wrote: That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is a C++ library. I'm trying hard to avoid dependencies on binary libraries with limited support. Builds exist only for Python 2.4 and 2.5. Huh? Matplotlib is a pretty phenomenal charting library, I use it routinely on both windows and linux, I've never had any compilation problems on Linux and never even needed to compile it on Windows. Writing if off as "just a wrapper for antigrain" is pretty insulting... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
by your definitions, Python is just a wrapper around a C library. If none of the solutions work for you, roll your own. On Thu, Sep 17, 2009 at 11:38 AM, Giacomo Boffi wrote: > John Nagle writes: > >> gerlos wrote: >>> John Nagle ha scritto: >>> I'm looking for something that can draw simple bar and pie charts in Python. I'm trying to find a Python package, not a wrapper for some C library, as this has to run on both Windows and Linux and version clashes are a problem. >>> Did you look at matplotlib? In their examples page there are some >>> charts like the ones you asked for. I guess it could work for you, >>> and it seems to work flawlessy in MS Windows as in gnu/linux. >> >> That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is >> a C++ library. > > come on, you can configure matplotlib to use one of too many different > backends > > from http://matplotlib.sourceforge.net/users/customizing.html > > CONFIGURATION BEGINS HERE > > # the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg > # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template > # You can also deploy your own backend outside of matplotlib by > # referring to the module name (which must be in the PYTHONPATH) as > # 'module://my_backend' > backend : GTKAgg > > -- > Yes you who must leave everything that you cannot control. > It begins with your family, but soon it comes around to your soul. > Well I've been where you're hanging, I think I can see how you're pinned: > When you're not feeling holy, your loneliness says that you've sinned. > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle writes: > gerlos wrote: >> John Nagle ha scritto: >> >>> I'm looking for something that can draw simple bar and pie charts >>> in Python. I'm trying to find a Python package, not a wrapper for >>> some C library, as this has to run on both Windows and Linux >>> and version clashes are a problem. >>> >> Did you look at matplotlib? In their examples page there are some >> charts like the ones you asked for. I guess it could work for you, >> and it seems to work flawlessy in MS Windows as in gnu/linux. > >That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is > a C++ library. come on, you can configure matplotlib to use one of too many different backends from http://matplotlib.sourceforge.net/users/customizing.html CONFIGURATION BEGINS HERE # the default backend; one of GTK GTKAgg GTKCairo CocoaAgg FltkAgg # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template # You can also deploy your own backend outside of matplotlib by # referring to the module name (which must be in the PYTHONPATH) as # 'module://my_backend' backend : GTKAgg -- Yes you who must leave everything that you cannot control. It begins with your family, but soon it comes around to your soul. Well I've been where you're hanging, I think I can see how you're pinned: When you're not feeling holy, your loneliness says that you've sinned. -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Vlastimil Brom writes: > As for BLT, there is Pmw.Blt, the original is written in Tcl. doesn't work (dumps core) on debian linux bug #525860: python-pmw triggers segmentation fault in blt not that blt itself is really OK bug #524149: blt: zooming in a graph produces segmentation fault -- Io ti saluto diventa equivalente ad io saluto te -- gobbacci, in ISC -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On 2009-09-16, Alan G Isaac wrote: > Tkinter is part of the Python standard library: That doesn't mean you can depend on it being available. It doesn't get installed by default on some Linux distros. -- Grant Edwards grante Yow! Wait ... is this a FUN at THING or the END of LIFE in visi.comPetticoat Junction?? -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle wrote: Ethan Furman wrote: John Nagle wrote: http://home.gna.org/pychart/doc/introduction.html Tried PyChart. ... PyChart generates SVG reasonably well, and needs no external programs when generating SVG. But there's something broken related to font sizes. Larger values of "font-size" produce smaller type, and chart labels don't fit their boxes. I'm trying to figure out whether PyChart is generating incorrect SVG or whether Mozilla is incorrectly rendering SVG. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Hi! > Tkinter is part of the Python standard library Yes. But... tkinter is a wrapper to tcl/tk, who is written in tcl. Ok, tcl is given with Python (standard library). Therefore, you sentence: 'Are you really ruling out its use for a "pure Python" solution?' Is well done... ;-) Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
PS: For those people that sugest use Blt. I use Blt a lot in linux and win32 but it is not port (yet) to TK8.5 so, it do not works with py2.6, and is really painfull to build in win32. Beside that, in order to use Blt, you need an instance of Tk running, ergo a XWindows running, an some times it is not the case for linux servers. In that cases I am using Mathplotlib, but a pure python solution will be GREAT! We've been having some problems with Blt in various 64 bit versions of ubuntu. I don't use it directly, but PMW does when it's available. I kept getting segfault crashes opening up various dialogs. Googling eventually traced these to Blt. Hacking the PMW code to make PMW run without BLT was fairly easy and did cure the problem. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On Sep 15, 6:28 pm, John Nagle wrote: > John Nagle wrote: > > I'mlookingfor something that can draw simple bar and pie charts > > inPython. I'm trying to find aPythonpackage, not a wrapper for > > some C library, as this has to run on both Windows and Linux > > and version clashes are a problem. > > > Here's the list from thePythonwiki at > > "http://wiki.python.org/moin/NumericAndScientific/Plotting";. > > Almost all the options are really wrappers for some other > > package in C/C++. > > > * Matplotlib -- wrapper for Antigrain, written in C/C++ > > * Veusz -- requires PyQt fromhttp://www.riverbankcomputing.co.uk/pyqt, > > which is in C/C++ > > * Chaco -- requires binaries for Enthought Tool Suite > > * ScientificPython - uses mix of C, C++, and FORTRAN. > > * Gnuplotmodule-- wrapper for GNUPLOT > > * plot_wrap - wrapper for GNU plotutils > > * BLT - "tcltk.com" link goes to a domain squatter site. > > * PyQT - wrapper for Qwt C++ library > > * DISLIN - interface to C++ DISLIN system > > * Mayavi - interface to Mayavai2, standalone program > > * gdmodule GD -pythonwrapper for the GD library. > > * Gist - wrapper for gist graphics library > > * pgplot - Wrapper for pgplot. > > * Py-OpenDX - wrapper for IBM Data Explorer > > * VTK - wrapper for VTK in C++ > > * RPy - wrapper for R programming lnaguage > > * PyX - wrapper for Tex. > > * Biggles - wrapper for C++module > > * Pychart - 100%Python (NOT!), but last updated 21-Dec-2005. > > * PyNGL - uses PyNIO, which is in C > > * pygooglechart -Pythoninterface to the GoogleChartLookinAPI, only > > works in browser > > > So, forpurePython, Pychart is it. I'll have to try it and see if it > > still works. > > http://home.gna.org/pychart/doc/introduction.html > > Tried PyChart. Set up for PNG file format. Got the error > "Exception: Ghostscript not found."This thing just creates > PostScript, then pumps it through GhostScript (anybody remember that?) > to get other formats. And does the documentation say that? Only > in the FAQ section. Grrr. > > There doesn't seem to be anypurePythonchartmoduleat all. > Just wrappers. > > John Nagle Hi John, I had the same problem using Btl. Blt generate postscript file and I needed several others formats, then I did something like this: cmd = [gspath, '-sDEVICE=%s'%device, '-sOutputFile=%s'%onormfile, '-dNOPAUSE -q -dBATCH', '%s'%inormfile, ] gscmd = ' '.join(cmd) try: retcode = call(gscmd, shell=True) if retcode > 0: log.error("'ghostscript' return whit error code '%d'"%retcode) except OSError, e: log.error("Error trying execute 'ghostscript'") ... remarks: - gspath is the absolute path to the ghostscript executable - device can be 'pdfwrite', 'jpeg', 'bmp256', 'png256' - onormfile is the output filename normalized to the OS - inormfile is the postscript filename normalized to the OS - call is the function of subprocess module warning: ghostscript do not accept spaces in the filenames, so be carefull if you is working in win32, even enclosing between " ". PS: For those people that sugest use Blt. I use Blt a lot in linux and win32 but it is not port (yet) to TK8.5 so, it do not works with py2.6, and is really painfull to build in win32. Beside that, in order to use Blt, you need an instance of Tk running, ergo a XWindows running, an some times it is not the case for linux servers. In that cases I am using Mathplotlib, but a pure python solution will be GREAT! my 0.005 cents. roberto -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Alan G Isaac wrote: There's John Zelle's graphics.py: http://mcsp.wartburg.edu/zelle/python/ provides basic functionality. On 9/16/2009 12:33 AM, John Nagle wrote: "The package is a wrapper around Tkinter". It runs Tkinter in a separate thread and sends commands to it. Tkinter is part of the Python standard library: http://docs.python.org/library/tk.html Are you really ruling out its use for a "pure Python" solution? If you want a Python solution to not just create the graphs but also to view them, it is hard to see how you will do without this. What exactly are you trying to accomplish? Alan Isaac PS I think ReportLab can generate PDF vector graphics even in the absence of a C compiler (which it will use if available). -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Hi! Perso I use a wrapper to RMCHART. There are two versions : DLL & COM. I prefer COM. Warning : only on Windows's family. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On 2009-09-15, John Nagle wrote: > Tried PyChart. Set up for PNG file format. Got the error > "Exception: Ghostscript not found."This thing just creates > PostScript, then pumps it through GhostScript (anybody remember that?) Remember it? It's an actively maintained program and I use it every day. -- Grant -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Ethan Furman wrote: John Nagle wrote: http://home.gna.org/pychart/doc/introduction.html Tried PyChart. Set up for PNG file format. Got the error "Exception: Ghostscript not found."This thing just creates PostScript, then pumps it through GhostScript (anybody remember that?) to get other formats. And does the documentation say that? Only in the FAQ section. Grrr. There doesn't seem to be any pure Python chart module at all. Just wrappers. John Nagle http://home.gna.org/pychart/doc/module-theme.html Looks like it will directly create pdf files, not sure if that will for you. Hope this helps. Thanks. More usefully, the program will generate SVG output. That I can use. There are some bugs; the SVG text sizes are about 2x too big. But I can fix that. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
Alan G Isaac wrote: There's John Zelle's graphics.py: http://mcsp.wartburg.edu/zelle/python/ provides basic functionality. "The package is a wrapper around Tkinter". It runs Tkinter in a separate thread and sends commands to it. Pmw.Blt http://heim.ifi.uio.no/~hpl/Pmw.Blt/doc/reference.html That's a wrapper for the BLT package for Tcl. (http://blt.sourceforge.net/). The documentation for the wrapper says it was developed for Windows 98. pygooglechart You suggested this needs a browser, but not so, you can download the PNGs and use the default viewer to display them. That outsources the job to Google, which could choose at any time to cancel that service (as they did, for example, with their SOAP-based search API.) "You acknowledge and agree that Google may stop (permanently or temporarily) providing the Services (or any features within the Services) to you or to users generally at Google’s sole discretion, without prior notice to you." Besides, outsourcing something this basic just adds something else that can break. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
gerlos wrote: John Nagle ha scritto: I'm looking for something that can draw simple bar and pie charts in Python. I'm trying to find a Python package, not a wrapper for some C library, as this has to run on both Windows and Linux and version clashes are a problem. Did you look at matplotlib? In their examples page there are some charts like the ones you asked for. I guess it could work for you, and it seems to work flawlessy in MS Windows as in gnu/linux. That's a wrapper for Antigrain ("http://www.antigrain.com/";), which is a C++ library. I'm trying hard to avoid dependencies on binary libraries with limited support. Builds exist only for Python 2.4 and 2.5. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
There's John Zelle's graphics.py: http://mcsp.wartburg.edu/zelle/python/ provides basic functionality. Pmw.Blt http://heim.ifi.uio.no/~hpl/Pmw.Blt/doc/reference.html pygooglechart You suggested this needs a browser, but not so, you can download the PNGs and use the default viewer to display them. But really, Matplotlib is both cross platform and great. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle ha scritto: > I'm looking for something that can draw simple bar and pie charts > in Python. I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. > Did you look at matplotlib? In their examples page there are some charts like the ones you asked for. I guess it could work for you, and it seems to work flawlessy in MS Windows as in gnu/linux. regards gerlos -- "Solo lo scienziato è vero poeta: ci dà la luna, ci promette le stelle, ci farà un nuovo universo se sarà il caso." < http://gerlos.altervista.org > gerlos +- - - > gnu/linux registred user #311588 -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle wrote: http://home.gna.org/pychart/doc/introduction.html Tried PyChart. Set up for PNG file format. Got the error "Exception: Ghostscript not found."This thing just creates PostScript, then pumps it through GhostScript (anybody remember that?) to get other formats. And does the documentation say that? Only in the FAQ section. Grrr. There doesn't seem to be any pure Python chart module at all. Just wrappers. John Nagle http://home.gna.org/pychart/doc/module-theme.html output_format This variable sets the encoding of the data produced by PyChart. The value of this variable must be one of the following strings. ps: eps: Encapsulated PostScript. This is the default. pdf: Adobe Page Description Format, or PDF. pdf-uncompressed: PDF without compression. This option should be used for a debugging purpose only. png: PNG graphics. You need to have ghostscript (gs) installed to use this option, because PyChart internally calls ghostscript to convert PostScript to PNG. Looks like it will directly create pdf files, not sure if that will for you. Hope this helps. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
John Nagle wrote: I'm looking for something that can draw simple bar and pie charts in Python. I'm trying to find a Python package, not a wrapper for some C library, as this has to run on both Windows and Linux and version clashes are a problem. Here's the list from the Python wiki at "http://wiki.python.org/moin/NumericAndScientific/Plotting";. Almost all the options are really wrappers for some other package in C/C++. * Matplotlib -- wrapper for Antigrain, written in C/C++ * Veusz -- requires PyQt from http://www.riverbankcomputing.co.uk/pyqt, which is in C/C++ * Chaco -- requires binaries for Enthought Tool Suite * ScientificPython - uses mix of C, C++, and FORTRAN. * Gnuplot module -- wrapper for GNUPLOT * plot_wrap - wrapper for GNU plotutils * BLT - "tcltk.com" link goes to a domain squatter site. * PyQT - wrapper for Qwt C++ library * DISLIN - interface to C++ DISLIN system * Mayavi - interface to Mayavai2, standalone program * gdmodule GD - python wrapper for the GD library. * Gist - wrapper for gist graphics library * pgplot - Wrapper for pgplot. * Py-OpenDX - wrapper for IBM Data Explorer * VTK - wrapper for VTK in C++ * RPy - wrapper for R programming lnaguage * PyX - wrapper for Tex. * Biggles - wrapper for C++ module * Pychart - 100% Python (NOT!), but last updated 21-Dec-2005. * PyNGL - uses PyNIO, which is in C * pygooglechart - Python interface to the Google Chart LookinAPI, only works in browser So, for pure Python, Pychart is it. I'll have to try it and see if it still works. http://home.gna.org/pychart/doc/introduction.html Tried PyChart. Set up for PNG file format. Got the error "Exception: Ghostscript not found."This thing just creates PostScript, then pumps it through GhostScript (anybody remember that?) to get other formats. And does the documentation say that? Only in the FAQ section. Grrr. There doesn't seem to be any pure Python chart module at all. Just wrappers. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
On Sep 15, 8:25 pm, John Nagle wrote: > I'm looking for something that can draw simple bar and pie charts > in Python. I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. > > Here's the list from the Python wiki at > "http://wiki.python.org/moin/NumericAndScientific/Plotting";. > Almost all the options are really wrappers for some other > package in C/C++. > > * Matplotlib -- wrapper for Antigrain, written in C/C++ > * Veusz -- requires PyQt fromhttp://www.riverbankcomputing.co.uk/pyqt, which > is in C/C++ > * Chaco -- requires binaries for Enthought Tool Suite > * ScientificPython - uses mix of C, C++, and FORTRAN. > * Gnuplot module -- wrapper for GNUPLOT > * plot_wrap - wrapper for GNU plotutils > * BLT - "tcltk.com" link goes to a domain squatter site. > * PyQT - wrapper for Qwt C++ library > * DISLIN - interface to C++ DISLIN system > * Mayavi - interface to Mayavai2, standalone program > * gdmodule GD - python wrapper for the GD library. > * Gist - wrapper for gist graphics library > * pgplot - Wrapper for pgplot. > * Py-OpenDX - wrapper for IBM Data Explorer > * VTK - wrapper for VTK in C++ > * RPy - wrapper for R programming lnaguage > * PyX - wrapper for Tex. > * Biggles - wrapper for C++ module > * Pychart - 100% Python, but last updated 21-Dec-2005. > * PyNGL - uses PyNIO, which is in C > * pygooglechart - Python interface to the Google Chart LookinAPI, only works > in > browser > > So, for pure Python, Pychart is it. I'll have to try it and see if it still > works. > > John Nagle My choice is PyQWT but few monts before I started pure python tkinter cartesian plot control: screenshot: http://www.iltchev.com/tkplot/tkplot.png source: http://www.iltchev.com/tkplot/tkplot.py.txt This class is in a very early stage, but I think it is good start. :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a pure Python chart drawing module
2009/9/15 John Nagle : > I'm looking for something that can draw simple bar and pie charts > in Python. I'm trying to find a Python package, not a wrapper for > some C library, as this has to run on both Windows and Linux > and version clashes are a problem. > > Here's the list from the Python wiki at > "http://wiki.python.org/moin/NumericAndScientific/Plotting";. > Almost all the options are really wrappers for some other > package in C/C++. >... > * BLT - "tcltk.com" link goes to a domain squatter site. > ... > So, for pure Python, Pychart is it. I'll have to try it and see if it still > works. > > John Nagle > -- > http://mail.python.org/mailman/listinfo/python-list > As for BLT, there is Pmw.Blt, the original is written in Tcl. http://sourceforge.net/projects/blt/ http://pmw.sourceforge.net/doc/Blt.html http://heim.ifi.uio.no/~hpl/Pmw.Blt/doc/ Maybe Tcl/Pmw has less problems on different platforms, but isn't pure python either; moreover I'm not sure what graph types are supported. vbr -- http://mail.python.org/mailman/listinfo/python-list
Looking for a pure Python chart drawing module
I'm looking for something that can draw simple bar and pie charts in Python. I'm trying to find a Python package, not a wrapper for some C library, as this has to run on both Windows and Linux and version clashes are a problem. Here's the list from the Python wiki at "http://wiki.python.org/moin/NumericAndScientific/Plotting";. Almost all the options are really wrappers for some other package in C/C++. * Matplotlib -- wrapper for Antigrain, written in C/C++ * Veusz -- requires PyQt from http://www.riverbankcomputing.co.uk/pyqt, which is in C/C++ * Chaco -- requires binaries for Enthought Tool Suite * ScientificPython - uses mix of C, C++, and FORTRAN. * Gnuplot module -- wrapper for GNUPLOT * plot_wrap - wrapper for GNU plotutils * BLT - "tcltk.com" link goes to a domain squatter site. * PyQT - wrapper for Qwt C++ library * DISLIN - interface to C++ DISLIN system * Mayavi - interface to Mayavai2, standalone program * gdmodule GD - python wrapper for the GD library. * Gist - wrapper for gist graphics library * pgplot - Wrapper for pgplot. * Py-OpenDX - wrapper for IBM Data Explorer * VTK - wrapper for VTK in C++ * RPy - wrapper for R programming lnaguage * PyX - wrapper for Tex. * Biggles - wrapper for C++ module * Pychart - 100% Python, but last updated 21-Dec-2005. * PyNGL - uses PyNIO, which is in C * pygooglechart - Python interface to the Google Chart LookinAPI, only works in browser So, for pure Python, Pychart is it. I'll have to try it and see if it still works. John Nagle -- http://mail.python.org/mailman/listinfo/python-list