plotly / plotly/plotly.py

enable setting `xtick` to Integers Only

Open
#4,697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

It would be great both to have auto mode for the xticks yet being able to set them to be integer values only.

One could set them manually but them the auto scaling is gone.
Yet in some cases one would like to have only integers.
Yet setting the format to d might yield the same value number of time (1, 1.25, 1.5, 1.75, 2 will be mapped to 1, 1, 1, 2, 2 while one would like to have only 1 and 2 [Or others yet with auto range on]).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, entry point, or test. Start by locating the xtick and automatic tick-generation handling, then clarify how integer-only ticks should behave across automatically chosen ranges. Done means automatic scaling remains enabled while generated tick values are integers, without relying on number formatting to collapse non-integer ticks.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.