Skip to content

New spike defaults for v2 #5619

Closed
Closed

Description

@nicolaskruchten

I think the spikeline behaviour that we coerce today for x unified hovermode (in #4657) is better than the default behaviour... Should we change the compare defaults to be the same as the unified ones? i.e. *axis.spikesnap = 'hovered data' and spikedistance=-1 ?

Activity

  1. nicolaskruchten commented on Apr 30, 2021

    @nicolaskruchten
    ContributorAuthor

    so the justification for these new defaults is basically the intuition that by default, spike lines should attach to what's being hovered on. hovered data doesn't force this, it seems to act to prevent spikelines a non-hovered point because it's geometrically closer (allowing for a fallback to a more-distant hover-winning point I guess). To guarantee that the hovered point is always in range, we set spikedistance to -1.

  2. nicolaskruchten commented on Apr 30, 2021

    @nicolaskruchten
    ContributorAuthor

    Note that today, setting spikesnap='hovered data' forces spikes to true, which should no longer be the case when they're the default :)

  3. changed the title [-]New spike defaults[/-] [+]New spike defaults for v2[/+] on Apr 30, 2021
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