Skip to content

Specifying edges limit not supported #196

Closed
@xarico10

Description

@xarico10

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions