On Sun, Mar 21, 2010 at 3:35 PM, David Carmean <dlc-...@halibut.com> wrote:
>
> Has anyone seen/created any UML models/diagrams for Matplotlib?
>
> I'm currently doing so to help me understand how to use it in an
> application, but wondered if somebody has already built the wheel
> that I'm trying to invent.
>
> One of the things I'm trying to figure out is whether I can build
> a graphic in "reverse order".  The standard M.O. seems to be to
> traverse a self-building tree by invoking convenience methods on
> each new child, Figure-->Subplot-->plot_date, etc.
>
> What I'm looking to do is build from the bottom up, e.g. create a line
> or scatter plot instance *first*, then append that to the children of
> an existing Axes instance, which is in-turn appended to the childrend of
> a Figure instance.

Certainly things like lines, collections can be added to existing axes
(and don't need one around to be created).  This is actually what's
used under the hood. You *should* also be able to create an axes
object and then set its figure, but I've never personally done it.

What you really want to look at are a lot of Axes methods:
set_figure()
add_artists()
add_collection()
add_line()

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to