From: <ba...@ph...> - 2003-01-22 08:18:56
|
Hi, thanks for pointing out Pmw - actually I played with this over the weekend. Basically it does what I want, _but_ it seems (please tell me that I am wrong here !!) that for each point one wants to plot a tag has to be given. In consequence, when plotting _many_ points in this way substantially increasing memory is used. Alternatively, it might be possible to just set up one vector and append the points at the end (I haven't tried this yet), but still the vector has to be kept in memory (also I would like the points to have different colors later on...). To give you an idea about what I am after I attach the current pmw version of my example (it opens with an empty window, clicking with the mouse somewhere will iterate that point 1000 times - watch with top the size of the program!). Arnd On Tue, 21 Jan 2003, Chris Burns wrote: > Hi all. > > Just thought I'd mention that the kind of graphing Arnd is looking for > is available through BLT, a widget set for Tcl/Tk. Luckily, BLT is > available through the Python Mega Widgets (Pmw). It's a bit of a pain > to setup (need to install BLT, then Pmw) and since BLT is a Tcl/Tk > add-on, it uses it's own vectors (not Numeric arrays). However, the > interface is rather nice: you make a vector and tell BLT to graph it. > Then, when you change the vector, BLT automagically updates the graph > widget (line, markers, scaling, etc). It's by no means as slick as Visual > (e.g., you need to use Tkinter to dress up the widget), but works well for > some purposes. > > See: > > Python Mega-Widgets: http://pmw.sourceforge.net/ > BLT in Python (lots of examples): http://heim.ifi.uio.no/~hpl/Pmw.Blt/doc/ > The official BLT: http://incrtcl.sourceforge.net/blt/ > > I used it to build an interactive ODE integrator (for watching choatic > systems evolve while they are being integrated). If you're interested, have > a look: > http://pathfinder.scar.utoronto.ca/~csca57/RKFgraph.html > > Chris > > -- > Chris Burns > Visiting Assistant Professor > Dept. of physics and astronomy, Swarthmore College > cb...@sw... http://astro.swarthmore.edu/~burns > > > > |