Skip to content

Conversation

gilbertogalvis
Copy link
Contributor

This PR add scatterhistogram to fig2plotly. Previously scatterhistogram was not implemented in fig2plotly.

This updated code was tested with all examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/data-distribution-plots/scatterhistogram. If you want to test please use one of those examples.

attach bellow one example:

load patients
tbl = table(LastName,Diastolic,Systolic,SelfAssessedHealthStatus);
s = scatterhistogram(tbl,'Diastolic','Systolic','GroupVariable','SelfAssessedHealthStatus', ...
    'NumBins',4,'LineWidth',1.5,'ScatterPlotLocation','NorthEast','LegendVisible','on');

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

Results for all examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/data-distribution-plots/scatterhistogram are show bellow

Screen Shot 2021-09-05 at 1 56 37 PM

Screen Shot 2021-09-05 at 1 58 34 PM

Screen Shot 2021-09-05 at 1 59 02 PM

Screen Shot 2021-09-05 at 1 59 28 PM

Screen Shot 2021-09-05 at 1 59 56 PM

Screen Shot 2021-09-05 at 2 00 21 PM

Screen Shot 2021-09-05 at 2 02 24 PM

Links to chart-studio bellow:

https://chart-studio.plotly.com/~galvisgilberto/3914/#/
https://chart-studio.plotly.com/~galvisgilberto/3916/true-false-true-false-true-false/#/
https://chart-studio.plotly.com/~galvisgilberto/3918/#/
https://chart-studio.plotly.com/~galvisgilberto/3920/red-black-blue-red-black-blue-red-black-blue/#/
https://chart-studio.plotly.com/~galvisgilberto/3922/red-black-blue-red-black-blue-red-black-blue/#/
https://chart-studio.plotly.com/~galvisgilberto/3924/excellent-fair-good-poor-excellent-fair-good-poor-excellent-fair-good-poor/#/
https://chart-studio.plotly.com/~galvisgilberto/3928/male-true-male-false-female-false-female-true-male-true-male-false-female-false-/#/

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