Skip to content

Axes issues when using pareto() #233

Closed
@xarico10

Description

@xarico10

When using pareto() there are multiple issues with the axes.

y = [90,75,30,60,5,40,40,5];
figure
pareto(y)

fig2plotly(gcf, 'offline', false);

Expected and generated () plots:
Captura de Pantalla 2021-07-30 a la(s) 4 25 22 p  m

Captura de Pantalla 2021-07-30 a la(s) 4 25 07 p  m

As seen, the x-axis edges are shorter, this produces the first and last bar to seem smaller and the distribution line to start where it shouldn't. Also, as the values are decreasingly ordered in the x-axis, the x-ticks aren't matching with those from MATLAB. Finally, the percentage ticks on the left side of the y-axis aren't there.

Examples on using pareto() can be found on:
https://www.mathworks.com/help/matlab/ref/pareto.html

Metadata

Metadata

Assignees

No one assigned

    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