figlegend and title

By the way, I'm on a quest to make the OO interface to

    > matplotlib fully functional and convenient. If you want to
    > work on it, John would probably except a patch to make a
    > figure.legend() method.

pylab.figlegend is a thin wrapper to matplotlib.Figure.legend; see
http://matplotlib.sf.net/matplotlib.figure.html#Figure-legend

<wink>

JDH

Hi John and Chris,

John Hunter wrote:

"Chris" == Chris Barker <Chris.Barker@...259...> writes:

    > By the way, I'm on a quest to make the OO interface to
    > matplotlib fully functional and convenient. If you want to
    > work on it, John would probably except a patch to make a
    > figure.legend() method.

pylab.figlegend is a thin wrapper to matplotlib.Figure.legend; see
http://matplotlib.sf.net/matplotlib.figure.html#Figure-legend

Got it, also don't understand why I could not get this to work yesterday - probably had crossed eyes.

Thanks and best regards
Werner

···

<wink>

JDH

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

I still have a bit of a problem.

This puts the legend "more or less" outside the plot. If I use "upper right" with only two lines it is o.k., however if I use e.g. "center right" then about half of the legend is still over the top of the plot.

Also if I have more then 2 lines I start overlapping even when using "upper right".

This is what I use (within the wxcursor_demo.py).
self.figure.legend((pLine, cLine), ('Purchase', 'Consumption'), 'upper right')

I would like the legend being totally outside the plot, I am o.k. with that the overall canvas would have to be a bit larger.

Is there a way I can do this? BTW, I tried using "axespad = 0.02" with different values, i.e. "-0.15" puts it to the right, but half the legend isn't visable anymore.

Thanks and best regards
Werner

Werner F. Bruhin wrote:

···

Hi John and Chris,

John Hunter wrote:

"Chris" == Chris Barker <Chris.Barker@...259...> writes:

    > By the way, I'm on a quest to make the OO interface to
    > matplotlib fully functional and convenient. If you want to
    > work on it, John would probably except a patch to make a
    > figure.legend() method.

pylab.figlegend is a thin wrapper to matplotlib.Figure.legend; see
http://matplotlib.sf.net/matplotlib.figure.html#Figure-legend

Got it, also don't understand why I could not get this to work yesterday - probably had crossed eyes.

Thanks and best regards
Werner

<wink>

JDH

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click