question about legends

I have a main routine that calls a subroutine twice. In the

    > subroutine, a plot is drawn. If the active figure is the
    > same, both plots are shown at the same time in the same
    > figure. The problem is that both plots have legends, and it
    > appears as if a figure can only have one legend, so one of
    > the legends is overwritten (the first). The question is,
    > what is the best way to get the legends to be appended so
    > that all graph lines have legends.

I don't really understand what your problem is, but I have a few
comments.

For "figure legends" you want to use the figlegend command, as opposed
to axes legends which use the legend command. You can have an
arbitrary number of figure legends on the same figure.

However, there is a bug in the figure legend code in matplotlib-0.54.2
that Jim Benson discovered. In matplotlib/figure.py, you need to
replace the line that reads

        l = Legend(handles, labels, loc)

with

        l = Legend(self, handles, labels, loc)

If you have more troubles, please post some code as that might help me
understand what you are trying to do.

JDH

···

__________________________________ Do you Yahoo!? Yahoo!

    > Mail is new and improved - Check it out!
    > http://promotions.yahoo.com/new_mail

    > -------------------------------------------------------
    > This SF.Net email sponsored by Black Hat Briefings &
    > Training. Attend Black Hat Briefings & Training, Las Vegas
    > July 24-29 - digital self defense, top technical experts,
    > no vendor pitches, unmatched networking
    > opportunities. Visit www.blackhat.com
    > _______________________________________________
    > Matplotlib-users mailing list
    > Matplotlib-users@lists.sourceforge.net
    > matplotlib-users List Signup and Options