Skip to content

Adding scatterhistogram to work with fig2plotly #370

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 2 commits into from
Sep 6, 2021

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