-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix for scattergl reversed lines bug #3078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks @archmoj ! Pro tip: make the PR title descriptive, so that we have an idea of what the PR is about just by looking at the title. No one remember issue numbers. Thanks again! |
package.json
Outdated
@@ -102,7 +102,7 @@ | |||
"polybooljs": "^1.2.0", | |||
"regl": "^1.3.7", | |||
"regl-error2d": "^2.0.5", | |||
"regl-line2d": "^3.0.11", | |||
"regl-line2d": "git://github.com/archmoj/regl-line2d.git#c5856f8d71f246532f11cb48e20aad30fa773652", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gl-vis/regl-line2d@master...archmoj:rev-bounds2d
@dy would you mind taking a 👀 at this patch?
@archmoj I'm curious. What made you decide to patch the From https://codepen.io/anon/pen/EpJObQ, swapping |
@etpinard Plotly.newPlot(gd, [{ "type": "scattergl", "mode": "lines", "x": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "y": [0, 1, 0, 7, 7, 0, 2, 4, 3, 0], "line": { "width": 10, "dash": "solid" } }], { xaxis:{ range: [-1, 10] }, yaxis:{ range: [10, -1] }}) ; |
Yeah I know, but
gives the correct result: with the current master |
I see that the point of a patch in javascript file.
|
Thanks for the explanation. This makes it very clear. Don't be shy to write down comments on "important" lines on your github PRs to add a little bit of backstory to your work. This makes the review much easier (and faster). Now, I think the next step would be the make a PR to https://github.com/a-vis/regl-line2d and ping @dy |
Not being listed in the contributors of regl I was not able to push my branch for the fix to |
Looks good to me! 💃 |
Lovely fix 🥇 |
Fixes #2904
Bug fix for 2D line plots.
Negative scales are handled in the webgl vertex shader so that the line plots would be displayed in layouts with reversed ranges.
@etpinard
@alexcjohnson