Skip to content

Adding pareto functionality to fig2plotly #372

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

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

gilbertogalvis
Copy link
Contributor

@gilbertogalvis gilbertogalvis commented Sep 9, 2021

This PR add pareto functionality to fig2plotly library. Previously pareto matlab function was not implemented in fig2plotly.

This PR was tested for all cases in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/discrete-data-plots/pareto and work perfectly for all cases.

Please test all cases there. Here I attach one example case

codelines = [200 120 555 608 1024 101 57 687];
coders = {'Fred','Ginger','Norman','Max','Julia','Wally','Heidi','Pat'};

figure
pareto(codelines, coders)
title('Lines of Code by Programmer');

f = fig2plotly(gcf, 'offline', 0);

Attach bellow screenshots of results

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

links to Chart-Studio:

https://chart-studio.plotly.com/~galvisgilberto/4132/#/
https://chart-studio.plotly.com/~galvisgilberto/4134/lines-of-code-by-programmer/#/
https://chart-studio.plotly.com/~galvisgilberto/4136/#/

NOTA
It is worth noting that, for this PR, an important change in the extractAxisData.m file was introduced, which optimally and automatically sets the ticklabels in the axes. Please check that file for more details on lines 235 to 291

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 this pull request may close these issues.

2 participants