We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using categorical data on histogram an error is being printed.
histogram
A = [0 0 1 1 1 0 0 0 0 NaN NaN 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1]; C = categorical(A,[1 0 NaN],{'yes','no','undecided'}); histogram(C,'BarWidth',0.2); fig2plotly();
The previous code prints the following error:
Error using response_handler (line 31) Expecting (x, y) pairs Error in makecall (line 32) response_handler(resp); Error in plotly (line 28) response = makecall(args, origin, structargs); Error in plotlyfig/plotly (line 437) args.layout = obj.layout; Error in fig2plotly (line 49) p.plotly; Error in A_histogram (line 49) fig2plotly();
Expected plot:
As the Name-Value argument 'BarWidth' only works for categorical histograms, this also leads to a disfunction with this argument.
'BarWidth'
Examples on using categorical data with histogram() can be found on: https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html#buy5k3l
histogram()
The text was updated successfully, but these errors were encountered:
fix issue #198
8217b48
This issue have now a Pull Request that fix it
Sorry, something went wrong.
gilbertogalvis
No branches or pull requests
When using categorical data on
histogram
an error is being printed.The previous code prints the following error:
Expected plot:
![Captura de Pantalla 2021-07-26 a la(s) 11 19 07 p m](https://user-images.githubusercontent.com/87881895/127094693-0ad2b4c4-4ea5-431e-9400-e275aa594421.png)
As the Name-Value argument
'BarWidth'
only works for categorical histograms, this also leads to a disfunction with this argument.Examples on using categorical data with
histogram()
can be found on:https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html#buy5k3l
The text was updated successfully, but these errors were encountered: