René's URL Explorer Experiment


Title: [BUG]: contour with `xaxis.rangeslider` clips the main plot to the range slider's height (shared gap clipPath id) · Issue #8109 · plotly/plotly.js · GitHub

Open Graph Title: [BUG]: contour with `xaxis.rangeslider` clips the main plot to the range slider's height (shared gap clipPath id) · Issue #8109 · plotly/plotly.js

X Title: [BUG]: contour with `xaxis.rangeslider` clips the main plot to the range slider's height (shared gap clipPath id) · Issue #8109 · plotly/plotly.js

Description: Description When a contour trace is drawn with xaxis.rangeslider.visible: true, the main plot is clipped to a strip the height of the range slider. The rest of the subplot is blank. The range slider thumbnail itself renders correctly. Th...

Open Graph Description: Description When a contour trace is drawn with xaxis.rangeslider.visible: true, the main plot is clipped to a strip the height of the range slider. The rest of the subplot is blank. The range slide...

X Description: Description When a contour trace is drawn with xaxis.rangeslider.visible: true, the main plot is clipped to a strip the height of the range slider. The rest of the subplot is blank. The range slide...

Opengraph URL: https://github.com/plotly/plotly.js/issues/8109

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: contour with `xaxis.rangeslider` clips the main plot to the range slider's height (shared gap clipPath id)","articleBody":"### Description\n\nWhen a `contour` trace is drawn with `xaxis.rangeslider.visible: true`, the main plot is clipped to a strip the height of the range slider. The rest of the subplot is blank. The range slider thumbnail itself renders correctly.\n\nThis happens with the default `connectgaps: false`, **even when `z` has no missing values**. Heatmaps are not affected.\n\nReproduced in 4.1.1 (latest), 4.0.0, 3.7.0, 3.0.0, 2.35.3 and 1.58.5 (Chrome, headless and desktop).\n\n**Cause.** `clipGaps` in `src/traces/contour/plot.js` creates a single `\u003cclipPath>` per trace, keyed only by `trace.uid`, and computes its path with the axes of the subplot currently being drawn:\n\n```js\nfunction clipGaps(plotGroup, plotinfo, gd, cd0, perimeter) {\n    var trace = cd0.trace;\n    var clips = gd._fullLayout._clips;\n    var clipId = 'clip' + trace.uid;\n    // ... path computed with plotinfo.xaxis / plotinfo.yaxis\n    Drawing.setClipUrl(plotGroup, clipId, gd);\n}\n```\n\nThe range slider draws the same trace again through `rangePlot` with its own small axes (`isRangePlot: true`). Both drawings share the same uid, so they share the same `clipPath`. The range plot is drawn last, so it overwrites the path with range-slider coordinates. The main plot then gets clipped by a shape that is only as tall as the slider.\n\nIn our measurements, the clip path bbox height equals the slider height (41px) instead of the plot area height (191px). Without the range slider, the clip path matches the plot area.\n\n### Screenshots/Video\n\nLeft: 4.1.1. Right: 4.1.1 with the one-line change below. Top row: full `z`. Bottom row: `z` with `null` cells.\n\n\u003cimg width=\"960\" height=\"840\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bf471650-c8cc-4628-9d16-79ea6c01dcca\" />\n\n### Steps to reproduce\n\n\n```html\n\u003cscript src=\"https://cdn.plot.ly/plotly-4.1.1.js\">\u003c/script>\n\u003cdiv id=\"graph\" style=\"width:480px;height:420px\">\u003c/div>\n\u003cscript>\n  var x = [0, 1, 2, 3, 4, 5];\n  var y = [0, 1, 2, 3, 4];\n  var z = y.map(function (j) { return x.map(function (i) { return 10 * (i + j); }); });\n\n  Plotly.newPlot('graph', [{ type: 'contour', x: x, y: y, z: z }], {\n    margin: { b: 90 },\n    xaxis: { rangeslider: { visible: true } }\n  });\n\u003c/script>\n```\n\n- Open the page.\n- Note that only a strip at the top of the main plot is drawn; the rest is blank.\n- The same happens after `Plotly.restyle` of `x`/`y`/`z`, after changing `xaxis.range` through the slider, and after `relayout` of a `coloraxis`.\n- With `z` containing `null`s (e.g. `[[10,20,30,40],[20,30,null,50],[30,null,50,60],[40,50,60,70]]`), the main plot is clipped the same way. The gaps only show up correctly in the range-slider thumbnail.\n\n### Notes\n\n**Workarounds and why they fall short**\n- `connectgaps: true` avoids the bug, because no clip path is created. But it changes the data: `null` cells get filled by interpolation, so the plot shows values that were never measured. That isn't acceptable when missing data must stay visible.\n- Disabling the range slider for contour traces is what we do for now.\n\n**Proposed fix (validated locally)**\n\nGive the range-plot drawing its own clip id:\n\n```diff\n function clipGaps(plotGroup, plotinfo, gd, cd0, perimeter) {\n     var trace = cd0.trace;\n     var clips = gd._fullLayout._clips;\n-    var clipId = 'clip' + trace.uid;\n+    var clipId = 'clip' + trace.uid + (plotinfo.isRangePlot ? '-rangeplot' : '');\n```\n\nI applied the equivalent change to the 4.1.1 dist bundle and re-ran the cases above:\n- Full `z`, `z` with nulls, restyle of x/y/z, range change from the slider, `coloraxis` relayout, and a grid filled row by row (25% → 100%) all render correctly.\n- Gaps stay gaps in both the main plot and the thumbnail.\n- The main clip path matches the plot area height again.\n\nThe change above is a suggestion based on local testing; I haven't opened a PR. Feel free to use it if it fits.\n\n\nPossibly related: #705 (2016, contour + range slider, \"some `\u003cclipPath>` node is not getting updated properly\"). It was closed as a duplicate of #558 for lack of a repro.","author":{"url":"https://github.com/YkRic","@type":"Person","name":"YkRic"},"datePublished":"2026-10-05T14:27:40Z","url":"https://github.com/plotly/plotly.js/issues/8109"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:94e14007-47ff-eb7b-22e0-e2a394a0e628
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF22:3CBB3E:1EB6235:272B9EA:6B01AB85
html-safe-nonce772666e3c569e0c224b31755db8fbe74fcf68bfa1b212a1b3007b4affa16ebac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjIyOjNDQkIzRToxRUI2MjM1OjI3MkI5RUE6NkIwMUFCODUiLCJ2aXNpdG9yX2lkIjoiOTEzODE1MDg1NTE4MTE4Mzg3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6392f8e42ad69b7f4fce96b47b9b6e6425574246f57c69d3f66274fa6b2b5961
hovercard-subject-tagissue:5713802297
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/8109/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e42a08cb5ecec3a3e41020a3b90dce73a78ac61a0135459bf498157eba54b2e7/plotly/plotly.js/issues/8109
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e42a08cb5ecec3a3e41020a3b90dce73a78ac61a0135459bf498157eba54b2e7/plotly/plotly.js/issues/8109
og:image:altDescription When a contour trace is drawn with xaxis.rangeslider.visible: true, the main plot is clipped to a strip the height of the range slider. The rest of the subplot is blank. The range slide...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYkRic
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/8109#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F8109
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F8109
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/8109
Reloadhttps://github.com/plotly/plotly.js/issues/8109
Reloadhttps://github.com/plotly/plotly.js/issues/8109
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/8109
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/8109
[BUG]: contour with xaxis.rangeslider clips the main plot to the range slider's height (shared gap clipPath id)https://github.com/plotly/plotly.js/issues/8109#top
https://github.com/camdecoster
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%22
https://github.com/YkRic
YkRichttps://github.com/YkRic
on Oct 5, 2026https://github.com/plotly/plotly.js/issues/8109#issue-5713802297
https://private-user-images.githubusercontent.com/24683549/665760966-bf471650-c8cc-4628-9d16-79ea6c01dcca.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNzE4NTcsIm5iZiI6MTc5NTI3MTU1NywicGF0aCI6Ii8yNDY4MzU0OS82NjU3NjA5NjYtYmY0NzE2NTAtYzhjYy00NjI4LTlkMTYtNzllYTZjMDFkY2NhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDE0MzIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwOWNlMzU5MDA1NjJmMmZjMGY0ZWEyMzE0YzAwZWRmMjIzYWQ4MzI5ZTA5YzRkMTU5NzllN2Y4NzVmNzk3ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.BIt145UL5nbCI0qo8QC6sprvpa5Q9nNbKAM0ndSG364
#705https://github.com/plotly/plotly.js/issues/705
#558https://github.com/plotly/plotly.js/issues/558
YkRichttps://github.com/YkRic
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 5, 2026https://github.com/plotly/plotly.js/issues/8109#event-32517232662
https://github.com/camdecoster
camdecosterhttps://github.com/camdecoster
on Oct 5, 2026https://github.com/plotly/plotly.js/issues/8109#issuecomment-6001962852
camdecosterhttps://github.com/camdecoster
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%22
on Oct 5, 2026https://github.com/plotly/plotly.js/issues/8109#event-32541088551
camdecosterhttps://github.com/camdecoster
on Oct 5, 2026https://github.com/plotly/plotly.js/issues/8109#event-32541095045
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/8109
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/8109
camdecosterhttps://github.com/camdecoster
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.