Re: [Matplotlib-users] Stopping Legend From Overlapping the Graph

2009-06-28 Thread Chris Spencer
Awesome, thanks. That works perfectly. Chris On Sun, Jun 28, 2009 at 12:16 AM, Jae-Joon Lee wrote: > sorry. > As guillaume has mentioned, you need to install mpl from svn. > > Here is some workaround you can try. I guess it would work with 0.98.5.3. > Basically, you create a separate axes for a l

Re: [Matplotlib-users] Stopping Legend From Overlapping the Graph

2009-06-27 Thread Jae-Joon Lee
sorry. As guillaume has mentioned, you need to install mpl from svn. Here is some workaround you can try. I guess it would work with 0.98.5.3. Basically, you create a separate axes for a legend. ax1 = axes([0.1, 0.2,0.8, 0.7]) p1, = ax1.plot([1,2,3]) p2, = ax1.plot([3,2,1]) ax2 = axes([0.1, 0.1,

Re: [Matplotlib-users] Stopping Legend From Overlapping the Graph

2009-06-27 Thread Chris Spencer
Thanks. Is that some sort of blending edge feature? I just installed 0.98.5.3, but the sample code gives me the error: TypeError: __init__() got an unexpected keyword argument 'bbox_to_anchor' On Thu, Jun 25, 2009 at 10:20 PM, Jae-Joon Lee wrote: > The linked page below shows how you put the lege

Re: [Matplotlib-users] Stopping Legend From Overlapping the Graph

2009-06-26 Thread guillaume ranquet
I forgot to CC the list :S and I updated to svn trunk and it now works fine :) guillaume ranquet wrote: > this question raised my interest and I tried It. > unfortunately, I get errors :( > > when executing the demo source code linked, I get > > > $ python ~/testmpl.py > Traceback (most recent

Re: [Matplotlib-users] Stopping Legend From Overlapping the Graph

2009-06-25 Thread Jae-Joon Lee
The linked page below shows how you put the legend above the graph. http://matplotlib.sourceforge.net/users/plotting/legend.html#legend-location You can put it below the axes by adjusting the bbox_to_anchor parameter. Try something like bbox_to_anchor=(0., -0.1, 1., -0.1), loc=1 Make sure to a