Skip to content
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

Add Jitter to Scatterplot-Points #299

Closed
jdittrich opened this issue Mar 1, 2016 · 6 comments
Closed

Add Jitter to Scatterplot-Points #299

jdittrich opened this issue Mar 1, 2016 · 6 comments
Labels
community community contribution feature something new

Comments

@jdittrich
Copy link

Usecase: Several data points can have the same coordinates – due to chance, measurement resolution or because the data is actually ordinal. Because the points conceal each other, the plot can be misleading as these values are not visualized and thus don't get the visual weight they actually should get.

Solution: Allow jittering the values. (For boxplots, there is already a jittering option, however, its jitter is only along an additional, non-measured dimension)

@etpinard etpinard added feature something new community community contribution labels Jul 11, 2016
@jackparmer
Copy link
Contributor

Jitter issue in MPL matplotlib/matplotlib#2750
Jitter geom in ggplot2: http://docs.ggplot2.org/current/geom_jitter.html
Jitter flag in MATLAB: http://undocumentedmatlab.com/blog/undocumented-scatter-plot-jitter

Any companies out there interested in sponsoring a rigorous look at this for plotly.js and its interface libraries?
https://plot.ly/products/consulting-and-oem/

@Shians
Copy link

Shians commented May 10, 2017

Would love this feature, further than that I'd love a quasi-random implementation that approximates violin plots. https://github.com/sherrillmix/vipor seems like a short and sweet implementation with plenty of flexibility.

@plotly plotly deleted a comment from mshokoohi Jun 19, 2017
@jackparmer
Copy link
Contributor

@PPPW Looking for a sponsor

@jayleww
Copy link

jayleww commented Nov 20, 2017

Also looking for this feature.

Quick fix I used where my x data column was being pulled from a dataframe is below. Adds a random number -0.5 to 0.5 to each x value. Main issue is that it then displays a changed x-coordinate, so if your data is very sensitive at that scale then it would potentially ruin the data.

import np.random

x.apply(lambda n: n+(np.random.random_sample()-0.5)

@etpinard
Copy link
Contributor

Deleting all the +1s.

@plotly plotly deleted a comment from mattjvincent Feb 15, 2018
@plotly plotly deleted a comment from weatherwax Feb 15, 2018
@plotly plotly deleted a comment from destradafilm Feb 15, 2018
@plotly plotly deleted a comment from diegollarrull Feb 15, 2018
@plotly plotly deleted a comment from rand5 Feb 15, 2018
@plotly plotly deleted a comment Feb 15, 2018
@plotly plotly deleted a comment from cristhomas Feb 15, 2018
@plotly plotly deleted a comment from r1z1a Feb 15, 2018
@plotly plotly deleted a comment from PPPW Feb 15, 2018
@plotly plotly deleted a comment from eric-czech Feb 15, 2018
@plotly plotly deleted a comment from ted-strauss-K1 Feb 15, 2018
@plotly plotly deleted a comment from return-of-the-mack Feb 15, 2018
@plotly plotly deleted a comment from JCGTech Feb 15, 2018
@gvwilson
Copy link
Contributor

gvwilson commented Jun 5, 2024

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

@gvwilson gvwilson closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution feature something new
Projects
None yet
Development

No branches or pull requests

6 participants