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

auto bins and cumulative distribution histograms #1318

Closed
alexcjohnson opened this issue Jan 19, 2017 · 3 comments
Closed

auto bins and cumulative distribution histograms #1318

alexcjohnson opened this issue Jan 19, 2017 · 3 comments
Labels
feature something new

Comments

@alexcjohnson
Copy link
Collaborator

We need a way to harmonize autobins across traces, and that it needs to know about cumulative. To make this example work I needed to manually extend the bin range for the red trace, otherwise its CDF ended too soon. Actually, CDFs never end, really... so perhaps the even better thing to do would be to look at the axis range and draw bins out to the edge, while still only using the real data for autoranging? We also need to make sure bin sizes and edges match, which is needed for non-cumulative histograms as well.

hist_cum_stacked

Originally mentioned in #1189 (comment)

@nicolaskruchten
Copy link
Contributor

Is this now closed?

@etpinard
Copy link
Contributor

Update:

From the hist_cum_stacked which sets xbins: {start: 0.5, end: 10.5, size: 1} in both traces

image

then clearing xbins we get:

image

which computes shared bins (post #3044) of:

gd._fullLayout._histogramBinOpts.xyx = {
  end: 13.5,
  size: 2,
  start: -0.5
}

That is, the default auto xbins essentially have one bin too many. So I'd leave this issue open.

@gvwilson
Copy link
Contributor

gvwilson commented Jun 6, 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 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

4 participants