Re: [Matplotlib-users] Legend: Space between text and upper border

2006-07-13 Thread Benoit Donnet
Hi, why don't you try to remove the legend frame? > self.axes.plot(x_value, y_value, 'k-', >label = labelLegend) > > self.axes.legend(loc = 'best', pad = 0.1) > leg = self.axes.get_legend() leg.draw_frame(False) You won't have any problem with the legend box anymore. but mayb

Re: [Matplotlib-users] Legend: Space between text and upper border

2006-07-13 Thread Till Wagner
Hi Darren, > You can set legend.pad in your rc settings, or you > can change the legend's pad property either when you > create it or after the fact > > l=legend(['ok'], pad=0.5) > l.pad=1.5 > draw() But pad seems to have mainly an effect on the space between the text and the left and right bord

Re: [Matplotlib-users] Legend: Space between text and upper border

2006-07-12 Thread Darren Dale
On Wednesday 12 July 2006 10:12 pm, Till Wagner wrote: > Hello, > > I'm having a problem with the legend in matplotlib. > Sometimes the upper border of the legend goes throug > the first line of text in the legend. Is there any > chance to control the space between the text and the > upper border t

[Matplotlib-users] Legend: Space between text and upper border

2006-07-12 Thread Till Wagner
Hello, I'm having a problem with the legend in matplotlib. Sometimes the upper border of the legend goes throug the first line of text in the legend. Is there any chance to control the space between the text and the upper border to avoid this? -- Till Wagner