GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — legend()'s numpoints parameter does not allow the value zero · Issue #176 · matplotlib/matplotlib

legend()'s numpoints parameter does not allow the value zero #176

New issue
Copy link
New issue
Copy link
Closed
Closed
legend()'s numpoints parameter does not allow the value zero#176
Copy link

Description

@ddale
ddale
opened on Jun 20, 2011
Issue body actions

Original report at SourceForge, opened Thu Nov 18 19:48:21 2010

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

  1. leejjoon commented on Jul 21, 2011

    @leejjoon
    leejjoon
    on Jul 21, 2011
    Contributor
    More actions

    I consider this as a bug in documentation. This is fixed in the master branch w/ a commit of 7352a1d.

  2. leejjoon
    closed this as completedon Jul 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.