Axis Ticks not flushed with Graph Border
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
I am having some frustration trying to figure out (searching, trial and error) how to flush Plotly axis and the zero tick.
here is my code:
import plotly.go_objects as go
fig = go.Figure()
fig.add_trace(
go.Scatter(
x=x,
y=y,
name=label,
mode="markers",
marker=dict(size=10),
opacity=0.5,
)
)
fig.update_layout(
font_family="Arial",
template="simple_white",
title={"x": 0.5, "y": 0.9, "xanchor": "center", "yanchor": "top"},
yaxis=dict(mirror=True, ticks="outside", range=[0, 1]),
xaxis=dict(mirror=True, ticks="outside"),
legend=dict(
yanchor="top", xanchor="right", borderwidth=0.5, x=0.995, y=0.99
),
)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the axis-tick alignment described in the issue using the provided Plotly graph configuration and compare the result with the linked Stack Overflow post. Trace the JavaScript axis and layout rendering entry points; done means the zero tick and axis ticks visibly align with the graph border without regressing other axis layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100