ANN: gracePlot.py

__________________________________________________________________ Announcing: gracePlot.py v0.5 An interactive, user-friendly python interface to the Grace plotting package. __________________________________________________________________ * WHAT IS IT? gracePlot.py is a high-level interface to the Grace plotting package available at: http://plasma-gate.weizmann.ac.il/Grace/ The goal of gracePlot is to offer the user an interactive plotting capability similar to that found in commercial packages such as Matlab and Mathematica, including GUI support for modifying plots and a user-friendly, pythonic interactive command-line interface. * WHAT FEATURES DOES IT OFFER? Since this package is in the early stages of development it does not yet provide high-level command-line access to all of Grace's plotting functionality. It does, however, offer: * Line Plots (with or without errorbars) * Histograms (with or without errorbars) * Multiple graphs (sets of axes) per plot * Multiple simultaneous plots (grace sessions) * Overlaid graphs, using a 'hold' command similar to Matlab's * Legends, titles, axis labels, and axis limits * Integration with Numerical Python and Scientific Python's Histogram object Note that all advanced features and customizations are available through the Grace UI, so you can compose rough plots in Python and then polish them up in Grace. * HOW DO I USE IT? Here is an example session that creates a plot with two sets of axes, putting a line plot in one and a histogram in the other: Python 2.1.1 (#2, Jul 31 2001, 14:10:42) [GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] on linux2 Type "copyright", "credits" or "license" for more information. >>> from gracePlot import gracePlot >>> p = gracePlot() # A grace session opens >>> p.plot( [1,2,3,4,5], [10, 4, 2, 4, 10], [1, 0.7, 0.5, 1, 2], ... symbols=1 ) # A plot with errorbars & symbols >>> p.title('Funding: Ministry of Silly Walks') >>> p.ylabel('Funding (Pounds\S10\N)') >>> p.multi(2,1) # Multiple plots: 2 rows, 1 column >>> p.xlimit(0, 6) # Set limits of x-axis >>> p.focus(1,0) # Set current graph to row 1, column 0 >>> p.histoPlot( [7, 15, 18, 20, 21], x_min=1, ... dy=[2, 3.5, 4.6, 7.2, 8.8]) # A histogram w/errorbars >>> p.xlabel('Silliness Index') >>> p.ylabel('Applications/yr') >>> p.xlimit(0, 6) # Set limits of x-axis The result of this session can be found at: http://www.idyll.org/~n8gray/code/index.html * WHERE DO I GET IT? gracePlot is available here: http://www.idyll.org/~n8gray/code/index.html ___________________________________________________________ Cheers, -n8 -- Nathaniel Gray California Institute of Technology Computation and Neural Systems --

Can it do any 3d volume rendering? I've heard of grace, but know nothing about it. Rob. Nathaniel Gray wrote:
__________________________________________________________________
Announcing: gracePlot.py v0.5
An interactive, user-friendly python interface to the Grace plotting package.
__________________________________________________________________
* WHAT IS IT?
gracePlot.py is a high-level interface to the Grace plotting package available at: http://plasma-gate.weizmann.ac.il/Grace/ The goal of gracePlot is to offer the user an interactive plotting capability similar to that found in commercial packages such as Matlab and Mathematica, including GUI support for modifying plots and a user-friendly, pythonic interactive command-line interface.
* WHAT FEATURES DOES IT OFFER?
Since this package is in the early stages of development it does not yet provide high-level command-line access to all of Grace's plotting functionality. It does, however, offer: * Line Plots (with or without errorbars) * Histograms (with or without errorbars) * Multiple graphs (sets of axes) per plot * Multiple simultaneous plots (grace sessions) * Overlaid graphs, using a 'hold' command similar to Matlab's * Legends, titles, axis labels, and axis limits * Integration with Numerical Python and Scientific Python's Histogram object
Note that all advanced features and customizations are available through the Grace UI, so you can compose rough plots in Python and then polish them up in Grace.
* HOW DO I USE IT?
Here is an example session that creates a plot with two sets of axes, putting a line plot in one and a histogram in the other: Python 2.1.1 (#2, Jul 31 2001, 14:10:42) [GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] on linux2 Type "copyright", "credits" or "license" for more information. >>> from gracePlot import gracePlot >>> p = gracePlot() # A grace session opens >>> p.plot( [1,2,3,4,5], [10, 4, 2, 4, 10], [1, 0.7, 0.5, 1, 2], ... symbols=1 ) # A plot with errorbars & symbols >>> p.title('Funding: Ministry of Silly Walks') >>> p.ylabel('Funding (Pounds\S10\N)') >>> p.multi(2,1) # Multiple plots: 2 rows, 1 column >>> p.xlimit(0, 6) # Set limits of x-axis >>> p.focus(1,0) # Set current graph to row 1, column 0 >>> p.histoPlot( [7, 15, 18, 20, 21], x_min=1, ... dy=[2, 3.5, 4.6, 7.2, 8.8]) # A histogram w/errorbars >>> p.xlabel('Silliness Index') >>> p.ylabel('Applications/yr') >>> p.xlimit(0, 6) # Set limits of x-axis
The result of this session can be found at: http://www.idyll.org/~n8gray/code/index.html
* WHERE DO I GET IT?
gracePlot is available here: http://www.idyll.org/~n8gray/code/index.html
___________________________________________________________
Cheers, -n8
-- Nathaniel Gray
California Institute of Technology Computation and Neural Systems --
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- The Numeric Python EM Project www.members.home.net/europax

Nope. Grace is only for 2-d plots AFAIK. See their website for more info. You might want to check out VTK and OpenDX, both of which have entries in the Vaults of Parnassus. I've never tried either one but both look like industrial strength volume visualization packages and both have python bindings. -n8 On Friday 28 September 2001 05:23 pm, Rob wrote:
Can it do any 3d volume rendering? I've heard of grace, but know nothing about it. Rob.
Nathaniel Gray wrote:
__________________________________________________________________
Announcing: gracePlot.py v0.5
An interactive, user-friendly python interface to the Grace plotting package.
__________________________________________________________________
-- Nathaniel Gray California Institute of Technology Computation and Neural Systems --

On Fri, 28 Sep 2001, Nathaniel Gray wrote:
Nope. Grace is only for 2-d plots AFAIK. See their website for more info. You might want to check out VTK and OpenDX, both of which have entries in the
Rob, have you tried Mayavi (http://mayavi.sourceforge.net) that is fully 3D capable. And see http://cens.ioc.ee/projects/pyvtk/ that is prototype software to create VTK files from Python objects. Regards, Pearu The following fragment is from Mayavi README.txt: The MayaVi Data Visualizer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ MayaVi is a free, easy to use scientific data visualizer. It is written in Python and uses the amazing Visualization Toolkit (VTK) for the graphics. It provides a GUI written using. MayaVi is free and distributed under the GNU GPL. It is also cross platform and should run on any platform where both Python and VTK are available (which is almost any *nix, Mac OSX or Windows). <snip>

Thanks Peauru for the info. I tried to install the FreeBSD vtk port, but it won't compile. It ran for an hour and then crashed. I did install it on windows so we'll see how that works today. I've been focusing most of my effort to port Animabob to Cygwin. I am very impressed with Cygwin so far as its XFree86 was easy to set up with no XFree86config. I also found the OpenDX port to Cygwin, so I'll play with that a little as well. Rob. Pearu Peterson wrote:
On Fri, 28 Sep 2001, Nathaniel Gray wrote:
Nope. Grace is only for 2-d plots AFAIK. See their website for more info. You might want to check out VTK and OpenDX, both of which have entries in the
Rob, have you tried Mayavi (http://mayavi.sourceforge.net) that is fully 3D capable. And see http://cens.ioc.ee/projects/pyvtk/ that is prototype software to create VTK files from Python objects.
Regards, Pearu
The following fragment is from Mayavi README.txt:
The MayaVi Data Visualizer ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MayaVi is a free, easy to use scientific data visualizer. It is written in Python and uses the amazing Visualization Toolkit (VTK) for the graphics. It provides a GUI written using. MayaVi is free and distributed under the GNU GPL. It is also cross platform and should run on any platform where both Python and VTK are available (which is almost any *nix, Mac OSX or Windows). <snip>
-- The Numeric Python EM Project www.members.home.net/europax
participants (3)
-
Nathaniel Gray
-
Pearu Peterson
-
Rob