Closed
Description
When using histogram()
, specifying a number of bins with the input argument nbins
isn't working.
rng(1)
x = randn(100,1);
nbins = 5;
histogram(x,nbins)
fig2plotly();
The previous code should plot a histogram with 5 bins, however, it plots it with many more. This leads to differences in each bin's width and value.
Expected and generated (https://chart-studio.plotly.com/~xarico10/495/#/) plots:
Examples on using nbins
can be found on:
https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html#buiynvy-8
Metadata
Metadata
Assignees
Labels
No labels