Plotly.js: Histograms nbinsx and nbinsy descriptions are wrong

Created on 8 Jun 2016  路  2Comments  路  Source: plotly/plotly.js

Example:
After setting the nbinsx parameter to 20, the number of bins showing is 15. Also tried with other values for nbinsx, and results vary.

https://jsfiddle.net/2k0q2yg8/

bug

All 2 comments

Ha. That's a description bug.

nbinx doesn't directly set the number of bins but the maximum number of bins allowed by the autobin algorithm. The autobin algorithm attempts to keep the bin size _nice_.

The old plot.ly workspace got this right:

image

i.e. that _Max # X bin_ row.

For fully custom bin sizes, you should use xbins.start, xbins.end, xbins.size.

Changing the issue accordingly.

@yankev wanna try to make PR for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pynklu picture pynklu  路  3Comments

jonmmease picture jonmmease  路  3Comments

maxwell8888 picture maxwell8888  路  3Comments

WG- picture WG-  路  3Comments

tim-sauchuk picture tim-sauchuk  路  3Comments