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
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
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
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
The documentation for scatter command is out of date unfortunately.
You need to use "scatterpoints" keyword.
http://www.nabble.com/legend-bug--td22466216.html#a22466216
-JJ
On Mon, Jul 27, 2009 at 3:44 PM, per freem wrote:
> Hi all
>
> i am making a scatter plot and want to label one of the poin
Hi all
i am making a scatter plot and want to label one of the points in the
legend. i run
scatter([x], [y], ..., label="mylabel")
and then run legend as follows
plt.legend(loc='lower right', numpoints=1, pad=0.01, labelsep=.01,
handlelen=.05)
i set numpoints=1 because i want it to show just o