MCPcopy Index your code
hub / github.com/plotly/plotly.py / test_histogram_auto_orient

Function test_histogram_auto_orient

tests/test_optional/test_px/test_px_input.py:627–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625
626
627def test_histogram_auto_orient():
628 numerical = [1, 2, 3, 4]
629 assert px.histogram(x=numerical, nbins=5).data[0].nbinsx == 5
630 assert px.histogram(y=numerical, nbins=5).data[0].nbinsy == 5
631 assert px.histogram(x=numerical, y=numerical, nbins=5).data[0].nbinsx == 5
632
633
634def test_auto_histfunc():

Callers

nothing calls this directly

Calls 1

histogramMethod · 0.80

Tested by

no test coverage detected