Skip to content

set numpoints to 1 #4854

Closed
Closed

Description

@dsm054

(File under "default changes". For all I know this is already on the list of things to change, but if so I couldn't find it under either "numpoints" or "scatterpoints".)

My most popular answer on SO (see "matplotlib legend markers only once") explains how to avoid multiple points showing up in the legend.

This is far from scientific, but for what it's worth the question has 107 upvotes, my answer has 117 upvotes, and neither has a single downvote.

My experience is that those who don't like the multiple-marker convention really don't like it, and those who do don't seem particularly worked up about it.

Activity

  1. added this to the milestone on Aug 3, 2015
  2. joferkington commented on Aug 11, 2015

    @joferkington
    Contributor

    +1 from me.

    I think an rcParam of legend.numpoints = 1 is a much better default than the current default of 2. If the default style does go with this, legend.scatterpoints should be changed to 1 at the same time, as well.

    Worth including in the color overhaul, i.m.o.

  3. gauteh commented on Aug 18, 2015

    @gauteh
    Contributor

    👍

  4. HDembinski commented on Sep 18, 2015

    @HDembinski

    +1 from me, too :)

  5. Tillsten commented on Sep 18, 2015

    @Tillsten
    Contributor

    +1

  6. janpipek commented on Sep 23, 2015

    @janpipek

    +1

  7. efiring commented on Sep 23, 2015

    @efiring
    Member

    If one of you will generate a suitable PR for this, it will be merged. I will be very surprised if there is any opposition.

  8. added a commit that references this issue on Sep 24, 2015
    6b052ef
  9. modified the milestones: , on Oct 8, 2015
  10. added 2 commits that reference this issue on Nov 11, 2015
    c94a6e4
    f4ae546
  11. 1 remaining item

  12. added 4 commits that reference this issue on Nov 17, 2015
    40ce84a
    59dfe12
    1857d5c
    30eed40
  13. added a commit that references this issue on Dec 3, 2015
    0ebfc96
  14. added 4 commits that reference this issue on Dec 14, 2015
    afa6605
    3f3496e
    dd9a44c
    1ae9868
  15. added 3 commits that reference this issue on Dec 31, 2015
    a0b42cc
    084cf9d
    418b7cc
  16. added a commit that references this issue on Jan 25, 2016
    86b7a59
  17. added a commit that references this issue on Feb 8, 2016
    d3a9782
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions