The numpoints parameter does not allow the value of zero. I think it should be possible to have a legend with no point markers, but even if you disagree, there is still a bug.
Lines 251-252 in legend.py are:
if self.numpoints <= 0:
raise ValueError("numpoints must be >= 0; it was %d"% numpoints)
Either the code needs to be fixed to allow the value of zero or the error message needs to be fixed to say ">= 1"
Activity
leejjoon commented on Jul 21, 2011
I consider this as a bug in documentation. This is fixed in the master branch w/ a commit of 7352a1d.