Chris Barker wrote: > Larry Meyn wrote: > >> I feel the same way. However, you might want to look at the >> floatcanvas module and FloatCanvasDemo.py that come with the >> wxPython distribution. I've found it a very useful starting point >> for data plotting scripts, especially if you are interested in >> cartographic transformations. > > > If you are interested in using FloatCanvas, you should send me a note, > and I'll send you the latest version, and I can add you to a > low-traffic mailing list for announcements and technical discussion.
Thanks for the offer. I'll take you up on it. >>> I'd like to use wxPython to open some simple windows and draw/plot >>> figures from data. >> > > I'm curious why you don't think matplotlib will help you here, though > perhaps you mean it can't do the job by itself, which makes sense, > it's a plotting library, not a GUI toolkit. Matplotlib + wxPython is a > potent combination, however. Because matplotlib presents the plot at the end of the program. My programs are written to be interactive and continue running, i.e. calculate something or massage data, plot the result, close the plot window, do more stuff, check another plot, or other options not in any particular order. > What kind of data are you trying to display, and how do you want it to > look? I(we) can help steer you in the right direction. I just need simple plotting. Example, feed a function a table of values over a common x-axis, plot them all in a window maybe each a different color and/or line thickness. Nothting fancy. But gotta keep that program going when the window is closed. Possible problem: I use standard I/O to "talk" to the program (e.g. print and readline) in a terminal window. I don't have time for a fancier GUI and I really don't need one. >>> I've looked over documention that comes with the >>> installation and it appears incomplete. >> > It depends on what you mean by "complete". The reference docs are > quite complete, and you now have the choice of the C++ oriented ones > (which are very helpful once you get oriented) Incomplete means I can't find a list of classes, colors, event defintions, etc. It's just random hunting. >>> look to the examples and demos, but cheeze there's more there than I >>> ever want to know and in no particular order. I had to scroll through >>> two files of foreign (to me) code to find that >>> self.SetBackgroundColour("WHITE") will make my window background white. >>> >>> Can anyone recommend a source of documentation (preferably indexed)? >> > > The reference manual is your best bet, though it's not indexed. What I > do is grep all the html files, and usually find what I want. > > One of the tricks is that as an OO library, most of the methods > available for a widget are inherited from superclasses, and thus not > documented as part of that class. The new Python-spcific docs are > better in this regard, but I find them a little harder to navigate. > > http://www.wxpython.org/docs/api/ Will check it out. Thanks. >>> Or >>> even a listiing of where to find things like defined colors (uppercase, >>> apparently), >> > > Actually, any case will do, and here is how you get the complete list. > > >>> import wx.lib.colourdb > >>> wx.lib.colourdb.getColourList() > > Honestly, I don't remember how I found out how to do this, but it's in > the FloatCanvasDemo. However, I jsut looked, and in the demo, under > miscellaneous, there is the ColourDB demo. > > Poking through the demo to find a particular thing can be frustrating, > but it's not wasted time. While looking for what you want, you will > learn a lot about what is possible. > > events? I understand the EVT_PAINT idea, but when/what > >>> are >>> they called and what are the possible events I can bind a function to? >> > > Look in the reference docs, under topic overview, Event Handling: > > http://www.wxpython.org/onlinedocs.php > > For that matter, quickly scanning all the topic overviews is a good > way to get a handle on how wx works. > > If you don't have the demo running, get it running. Everything is in > there, and it's reasonably organized. The other source is the Wiki, > there are a lot of good examples in there. I did get the demo running. It is quite nice and gives me an idea of what this wxPython can do. Impressive and it looks Mac-like (not a big deal for me, but I understand not all packages accomplish that). Chris, Thanks for your help and encouragement. Back to the drawing board. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: [EMAIL PROTECTED] _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig