Skip to content

Scatter (sometimes) draw line incorrectly through markers #108

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

Closed
eulerreich opened this issue Dec 13, 2015 · 10 comments
Closed

Scatter (sometimes) draw line incorrectly through markers #108

eulerreich opened this issue Dec 13, 2015 · 10 comments
Labels
bug something broken

Comments

@eulerreich
Copy link

If I zoom in on a scatter plot of 'markers+lines', sometimes the line isn't drawn correctly through the markers.
image

I've been having this issue since before 1.9.x and now I'm on 1.9.3 and it's still there.

@etpinard
Copy link
Contributor

Copied from https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md#opening-issues :

Bug reports must be accompanied with a reproducible example. We recommend using
codepen, jsfiddle or jsbin to share your example.

@etpinard
Copy link
Contributor

@eulerreich or in your case a reproducible python code snippet OR a https://plot.ly URL.

@eulerreich
Copy link
Author

Here's an URL

@etpinard
Copy link
Contributor

@eulerreich that plot is private. Could you share it with me at [email protected]. Thanks.

@etpinard
Copy link
Contributor

@eulerreich Looks like you have (maybe accidentally) deleted the plot's associated grid or made it private. I can't see your graph's data.

@eulerreich
Copy link
Author

I realized that and sent you a second copy of it? Did you get that second
one?
On Dec 18, 2015 3:13 PM, "Étienne Tétreault-Pinard" <
[email protected]> wrote:

@eulerreich https://github.com/eulerreich Looks like you have (maybe
accidentally) deleted the plot's associated grid or made it private. I
can't see your graph's data.


Reply to this email directly or view it on GitHub
#108 (comment).

@etpinard
Copy link
Contributor

@eulerreich Could you resend me the working copy?

@eulerreich
Copy link
Author

I just resent it.

On Mon, Dec 21, 2015 at 8:47 AM, Étienne Tétreault-Pinard <
[email protected]> wrote:

@eulerreich https://github.com/eulerreich Could you resend me the
working copy?


Reply to this email directly or view it on GitHub
#108 (comment).

@etpinard
Copy link
Contributor

@eulerreich Bug confirmed (in both the latest Chrome and Firefox). Thanks for this report.

Here's a minimal example showing the bug: http://codepen.io/etpinard/pen/KVNwQR

No obvious reason why this bug could happen comes to mind.

Maybe some rounding error in the line decimation algorithm (cc @alexcjohnson ) ?

Note that hover picks out the 'correct' value:

With mode: 'markers+lines':

image

With mode: 'lines':

image

@etpinard etpinard added the bug something broken label Dec 28, 2015
@etpinard
Copy link
Contributor

etpinard commented Apr 6, 2016

fixed via #353

@etpinard etpinard closed this as completed Apr 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants