How to draw a pie chart in a map?

조회 수: 3 (최근 30일)
Zijia Zheng
Zijia Zheng 2020년 1월 10일
댓글: Hongyun 2024년 7월 28일
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
Hongyun
Hongyun 2024년 7월 28일
How to draw a pie chart in a map using the Mapping Toolbox?

댓글을 달려면 로그인하십시오.

채택된 답변

Meg Noah
Meg Noah 2020년 1월 10일
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
Meg Noah
Meg Noah 2021년 3월 4일
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 2021년 3월 7일
Hello Meg Noah thank you very much for your help I have solved my problem now.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pie Charts에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by