Skip to content

Conversation

@philippjfr
Copy link
Member

Fixes #8350

Copilot AI review requested due to automatic review settings January 5, 2026 14:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a flickering issue in the Plotly example notebook by disabling automatic margin calculations on the x-axis of a responsive plot.

Key Changes:

  • Added fig_responsive.update_xaxes(automargin=False) to prevent flickering in responsive Plotly plots with scroll zoom enabled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"metadata": {},
"outputs": [],
"source": [
"fig_responsive.update_xaxes(automargin=False)\n",
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider also updating y-axes with automargin=False to prevent potential flickering on the y-axis. When fixing flickering issues in responsive Plotly plots, it's typically necessary to disable automargin on both axes. You can add: fig_responsive.update_yaxes(automargin=False)

Suggested change
"fig_responsive.update_xaxes(automargin=False)\n",
"fig_responsive.update_xaxes(automargin=False)\n",
"fig_responsive.update_yaxes(automargin=False)\n",

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.11%. Comparing base (c2047a7) to head (c089faf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8362      +/-   ##
==========================================
- Coverage   86.12%   86.11%   -0.01%     
==========================================
  Files         349      349              
  Lines       54709    54709              
==========================================
- Hits        47116    47112       -4     
- Misses       7593     7597       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippjfr philippjfr merged commit 7e67d23 into main Jan 5, 2026
27 checks passed
@philippjfr philippjfr deleted the 8350_plotly_automargin branch January 5, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues around scrollZoom for Plotly panes

2 participants