Skip to content

seaborn styles make "+", "x" markers invisible; proposed workaround for shipped styles #8351

Closed

Description

@anntzer

It is a somewhat well-known issue (#4679) that seaborn's styles make "+", "x" markers invisible by default (because they set lines.markeredgewidth to zero). Although it may be helpful to use a separate rcparam to control such markers, this is not trivial (see linked issue). Instead, in this issue, I'd like to argue that matplotlib should not ship styles available by default where some markers are completely invisible; instead, we may e.g. set lines.markeredgewidth to a tiny value, so that the markers are at least faintly visible (and it may be easier to realize where the issue comes from), even though it is not strictly equivalent to the "official" seaborn style.

From simple attempts, it seems that a value like 0.25 should be enough.

Activity

  1. mwaskom commented on May 31, 2017

    @mwaskom

    I think this can be handled once #8479 lands by setting markeredgecolor to "auto", as per de7bc93, and then setting marker edge widths to any reasonable nonzero value.

  2. dmcooke commented on Jan 21, 2022

    @dmcooke

    Just hit this bug. Took me a while to figure out why my '+' marker wasn't showing (I'm using the seaborn-notebook style).

  3. mwaskom commented on Jan 21, 2022

    @mwaskom

    This is looong since fixed in seaborn itself, but unfortunately matplotlib refuses to fix the style sheets they ship: #13680

  4. anntzer commented on Jan 29, 2022

    @anntzer
    ContributorAuthor

    I think this is effectively closed by #22317 (the old styles will stay what they are given the backcompat concerns, but they point to seaborn itself).

  5. added this to the v3.6.0 milestone on Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions