Skip to content

add new "proportional" tick mode #6824

@ayjayt

Description

@ayjayt

What

Add a new tick mode:

# Usage:
xaxis: {
    tickmode: 'proportional',
    tickvals: [0, .5, 1],
}

Effect:

Plotly will make ticks propotional to the range: So if the x range is [50, 150], the tick marks will appear at 50, 100, and 150. If the xrange is [-0.5, 1.5], the tick marks will appear at -0.5, 0.5, and 1.5.

Why

Auto tick formatting is usually ugly (for any value ntick), and the other modes aren't responsive to user zooms.

Workaround: Using python w/ jlab, but I can calculate ticks manually on range changes and during rendering, and then use array mode, but it is clunky, and requires my users to have the plotly installed in their kernel and on jlab server. My proposal doesn't seem that different than modifying auto behavior, so I'll take a shot.

Who am I

Working on analysis software for geologists who design wells.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy