Skip to content

Adding pareto functionality to fig2plotly - #372

Merged
gilbertogalvis merged 1 commit into
masterfrom
Adding_pareto_functionality_to_fig2plotly
Sep 10, 2021
Merged

gilbertogalvis merged 1 commit into
masterfrom
Adding_pareto_functionality_to_fig2plotly

Conversation

@gilbertogalvis

@gilbertogalvis gilbertogalvis commented Sep 9, 2021 •

Copy link
Copy Markdown
Contributor

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