From: Ken M. <mc...@ii...> - 2005-07-28 16:50:51
|
Rich Shepard wrote: > Thanks very much. I discovered matplotlib only yesterday so I have a > lot of studying to do. I suspected that the OO API would be better for my > needs than is the MatLab(TM)-style interface. The matplotlib FAQ links to several resources that I found useful when learning about the OO API. http://matplotlib.sourceforge.net/faq.html#OO My experience was that reading classdocs was the most helpful source of information. The matplotlib.axes.Axes class is where most of the plotting methods live, so it's probably a good place to start, once you've figured out how to create Figures: http://matplotlib.sourceforge.net/matplotlib.axes.html#Axes The demos for my wxmpl module (demos/wxmpl-demos.py) may also help you out, as they are OO versions of several of the matplotlib examples. Look at all of the plot_XXX() functions at the beginning of the file. Since each of them takes a Figure as its only argument, they are backend-neutral. > Of course, I'm still brand-new to python and wxPython (I keep thinking in > terms of C and GTK+), but I'm working hard at getting up to speed. Ah, a glorious day! Our numbers grow! ;-) Ken |