Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-24 Thread Jae-Joon Lee
On Sat, Oct 23, 2010 at 1:30 AM, Gökhan Sever wrote: > By the way, from the linked construct, changing width and height of > the rectangle doesn't have any affect. > This is an expected behavior. Legend handles only respect a subset of parent's properties. For example, for lines, the lengths of t

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 6:26 AM, Jae-Joon Lee wrote: > On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever wrote: >> How could I change the appearance of the legend symbol in this case? >> It auto-uses a patch object (rectangle in this case). >> I would like to get a straight line instead. > > You may

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Jae-Joon Lee
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever wrote: > How could I change the appearance of the legend symbol in this case? > It auto-uses a patch object (rectangle in this case). > I would like to get a straight line instead. You may use proxy artists. http://matplotlib.sourceforge.net/users/le

[Matplotlib-users] Question about legend on histogram plot

2010-10-20 Thread Gökhan Sever
Hello, Consider these two simple lines in IPython -pylab: plt.hist(np.random.randn(1000), normed=1, histtype='step', label='test', lw=2) plt.legend() How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get a st