[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Systems for writing a science app front-end

Carlo Segre wrote:

While it is possible to feed gnuplot from an external script, we have recently been developing a gnuplot replacement using python, wxwidgets and matplotlib. The intent is to have a standalone tool for plotting as well as something that can be integrated more completly into a GUI.

For my 3D data output (2D I manage in grace), I output files with config options for gnuplot, then an instruction to read data from 'stdin', ie. the rest of the file. Through including other files, I can set 'global' options, and then run something like 'gnuplot *.Density.gnu' and generate a sequence of png files, which I slideshow using 'display' (imagemagick) and filter using grep et al. This works rather well, although I'm sure there is a better way :)

While initially I was keen to get a 3d plotting tool analogous to xmgrace for 2D, the scripts I have built up for gnuplot work well and do not require too much repetitive gui 'clicking' (I understand that xmgrace can be scripted, but haven't really got into it - and it only handles 2D after all).

Initially, we started with Tk then moved to pyplot but the current combination or wxwidgets and matplotlib seems to be a better bet for portability and support in the future.

Are you intending to release this as a separate project, or is this an internal effort?



Reply to: