Skip to content
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

Axes issues when using pareto() #233

Closed
xarico10 opened this issue Jul 30, 2021 · 1 comment · May be fixed by #321
Closed

Axes issues when using pareto() #233

xarico10 opened this issue Jul 30, 2021 · 1 comment · May be fixed by #321

Comments

@xarico10
Copy link
Contributor

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

@benaliabderrahmane benaliabderrahmane self-assigned this Aug 3, 2021
@benaliabderrahmane benaliabderrahmane linked a pull request Aug 4, 2021 that will close this issue
@benaliabderrahmane benaliabderrahmane removed their assignment Aug 6, 2021
@benaliabderrahmane benaliabderrahmane linked a pull request Aug 6, 2021 that will close this issue
@xarico10 xarico10 mentioned this issue Aug 8, 2021
@gilbertogalvis
Copy link
Contributor

This issue was fixed by PR #372

Attach results bellow (examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/discrete-data-plots/pareto)

Screen Shot 2021-09-08 at 8 43 34 PM

Screen Shot 2021-09-08 at 8 43 58 PM

Screen Shot 2021-09-08 at 8 44 18 PM

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

Successfully merging a pull request may close this issue.

3 participants