From: Andrew W. <an...@ph...> - 2003-01-19 15:58:52
|
>From: <ba...@ph...> >> Clearly, Visual is more aimed at 3D than 2D, but >> I haven't found a good 2D graphics display >> which allows for dynamic display from within python >> + mouse interaction/events. >> In particular, I really like the compactness in Visual, >> just three short commands do the job (gdisplay, dots=gdots, dots.plot) >> to get a plot. >> Are there any plans to realize 1.)-3.), or are they already >> there and I just overlooked it ?? You could always use graphing tools outside Visual - for example, if you're on a windows box, here's a short chunk of code that will start Excel (if it isn't running) and get it to display a graph of data you pass in a list: www.aifb.uni-karlsruhe.de/.../Artikel/ March%202000%20Feature%20Fast,%20Free%20Prototyping%20in%20Python.htm The other solution is one of the modules for graphing/plotting in Python. I assume Visual's main loop would mess with other Python GUI's in the same process, but you could write a 'graph server' program that runs seperately, and have your main Visual code communicate with it - sending the data to graph and getting commands back from the user. There's an interactive graphing interface, gracePlot, letting you fiddle with scales, axes, etc on the graph using either GUI buttons or an interactive python prompt, at: http://www.idyll.org/~n8gray/code/ (and check out the other alternatives at http://www.vex.net/parnassus/ under 'Graphics') I haven't played with either of these, I just thought I'd point out (admittedly non-ideal) alternatives to the built-in Visual graphing if you need some set of features right away... Andrew |