How to draw a pie chart in a map?

9 views (last 30 days)
Zijia Zheng
Zijia Zheng on 10 Jan 2020
Commented: Hongyun on 28 Jul 2024
Hello! I want to ask how to draw some pie charts in a map by using the m_map package? And move the pie charts to the corresponding latitude and longitude position? Thanks!
  1 Comment
Hongyun
Hongyun on 28 Jul 2024
How to draw a pie chart in a map using the Mapping Toolbox?

Sign in to comment.

Accepted Answer

Meg Noah
Meg Noah on 10 Jan 2020
I downloaded the package and then modified the m_ellipse.m program in that package to create a new m_piechart.m that produces this map. The .m files are attached.
piechartOnMap.png
  8 Comments
Meg Noah
Meg Noah on 4 Mar 2021
I haven't tried this but... in the test line
[h]=m_piechart(X,XColor,-75,50,10000,10000,0,2,[],'patch');
change the penultimate value of [] (default scale value is 1) to a value less than 1. Make it 1/2 or 1/10. Then if that works to reduce the size, take a guess-check-and-revise strategy to visually find the appealing size of the pie.
Arnaud KOUEKAM KENGAP
Arnaud KOUEKAM KENGAP on 7 Mar 2021
Hello Meg Noah thank you very much for your help I have solved my problem now.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!