Skip to content

Conversation

gilbertogalvis
Copy link
Contributor

This PR add geoscatter functionality to fig2plotly. Previously, geoplot was not implemented in fig2plotly. Now, the geoplot 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/geoplot. I share below an example code

latSeattle = 47.62;
lonSeattle = -122.33;

latAnchorage = 61.20;
lonAnchorage = -149.9;

latPtBarrow = 71.38;
lonPtBarrow = -156.47;
geoplot([latSeattle latAnchorage],[lonSeattle lonAnchorage],'y-',...
    [latSeattle latPtBarrow],[lonSeattle lonPtBarrow],'b:')
geolimits([44 73],[-149 -123]);
text(latAnchorage,lonAnchorage,'Anchorage');
text(latPtBarrow,lonPtBarrow,'Point Barrow');
text(latSeattle,lonSeattle,'Seattle',...
    'VerticalAlignment','bottom');

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/geoplot) as well as links to chart -studio

https://chart-studio.plotly.com/~galvisgilberto/4482/#/
https://chart-studio.plotly.com/~galvisgilberto/4484/#/
https://chart-studio.plotly.com/~galvisgilberto/4512/#/
https://chart-studio.plotly.com/~galvisgilberto/4518/#/
https://chart-studio.plotly.com/~galvisgilberto/4520/#/
https://chart-studio.plotly.com/~galvisgilberto/4522/#/
https://chart-studio.plotly.com/~galvisgilberto/4524/#/
https://chart-studio.plotly.com/~galvisgilberto/4526/#/

Screen Shot 2021-09-23 at 6 39 51 PM

Screen Shot 2021-09-23 at 6 40 18 PM

Screen Shot 2021-09-23 at 7 11 05 PM

Screen Shot 2021-09-23 at 7 59 39 PM

Screen Shot 2021-09-23 at 8 00 12 PM

Screen Shot 2021-09-23 at 8 00 35 PM

Screen Shot 2021-09-23 at 8 00 58 PM

Screen Shot 2021-09-23 at 8 01 22 PM

@gilbertogalvis gilbertogalvis merged commit 5e62bb7 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