Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Anthony M. Floyd
Hi Anthony, > legend to be at the same height as the top of the axis. How > do I go about moving the legend once I've created it? myLegend._loc=(x,y) myFigure.draw() There doesn't seem to be a .moveLegend() or equivalent method, so I always update the semi-private ._loc and on redraw. After

Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Armando Serrano Lombillo
In the legend command, the location keyword accepts a tuple giving x, y in axes coords, so I guess it will also work similarly with the figlegend command (which I assume you are using). Also you could try using legend (instead of figlegend) with coords out of the [0,1] range. See: http://matplotl

[Matplotlib-users] Reposition a Legend

2007-07-20 Thread Anthony
So I've figured out how to move the graph data out from underneath my legend using draw() methods and calculating where the axis should be but now I'd also like the top of the legend to be at the same height as the top of the axis. How do I go about moving the legend once I've created it? This is