plotly / plotly/plotly.py

tickmode='sync' option is not working as expected

Open
#4,565 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I was trying to use the multi-axes functionality in Plotly with the tickmode='sync' option, but the result was not as I expected. The grid axes are not aligned at y = 0 and the ticks of the second y axis are not "nice" rounded numbers. I found out that this issue was already raised in the repository where the functionality was originally pulled from: https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines/issues/4. Unfortunately, it was never resolved and since it is incorporated in Plotly I think it would make more sense to raise the issue here. Hopefully, someone can help me out!

P.S.: I think issue https://github.com/plotly/plotly.py/issues/4351 is referring to the same problems, but it is not as nicely explained as the issue mentioned above.

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

Start by reproducing the multi-axes case with tickmode='sync', then compare the behavior with the linked upstream issue and plotly.py issue #4351. Done means the grid axes align at y = 0 and the second y-axis uses nice, rounded tick values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.