Skip to content

Specifying edges limit not supported #196

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

Closed
xarico10 opened this issue Jul 27, 2021 · 0 comments
Closed

Specifying edges limit not supported #196

xarico10 opened this issue Jul 27, 2021 · 0 comments
Assignees

Comments

@xarico10
Copy link
Contributor

When using histogram to modify edges limit using the input argument edges doesn't work.

rng(1)
x = randn(1000,1);
edges = [-10 -2:0.25:2 10];
h = histogram(x,edges);

fig2plotly();

The previous code should plot a histogram going from -10 to 10 in the x-axis, however it plots it within the default values:

Expected and generated (https://chart-studio.plotly.com/~xarico10/491/#/) plots:
Captura de Pantalla 2021-07-26 a la(s) 11 05 29 p  m
Captura de Pantalla 2021-07-26 a la(s) 11 05 40 p  m

Examples on using edges can be found on:
https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html#buhzt18-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants