Skip to content

Add geobubble functionality in fig2plotly #398

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 3 commits into from
Sep 25, 2021

Conversation

gilbertogalvis
Copy link
Contributor

This PR add geobubble functionality to fig2plotly. Previously, geobubble was not implemented in fig2plotly. Now, the geobubble functionality is available and ready to use!

I have tested this functionality for all the examples in https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/geographic-plots/geobubble. I share below an example code

tsunamis = readtable('tsunamis.xlsx');
tsunamis.Cause = categorical(tsunamis.Cause);
geobubble(tsunamis,'Latitude','Longitude', ...
    'SizeVariable','MaxHeight','ColorVariable','Cause');

fig2plotly(gcf, 'offline', false);

I share below screenshots of the results obtained so far (testing all the examples at https://github.com/plotly/ssim_baselines/tree/main/matlab/code-examples/geographic-plots/geobubble as well as links to chart -studio

https://chart-studio.plotly.com/~galvisgilberto/4528/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/
https://chart-studio.plotly.com/~galvisgilberto/4530/#/
https://chart-studio.plotly.com/~galvisgilberto/4532/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/
https://chart-studio.plotly.com/~galvisgilberto/4534/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/
https://chart-studio.plotly.com/~galvisgilberto/4536/earthquake-earthquake-and-landslide-landslide-meteorological-unknown-cause-volca/#/

Screen Shot 2021-09-24 at 9 45 12 PM

Screen Shot 2021-09-24 at 9 45 41 PM

Screen Shot 2021-09-24 at 9 46 06 PM

Screen Shot 2021-09-24 at 9 46 36 PM

Screen Shot 2021-09-24 at 9 47 04 PM

@gilbertogalvis gilbertogalvis merged commit 6662c7a into master Sep 25, 2021
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