How to avoid overlapping of labels & autopct in a matplotlib pie chart?

前端 未结 2 1890
我在风中等你
我在风中等你 2020-12-13 20:11

My Python code is:

values = [234, 64, 54,10, 0, 1, 0, 9, 2, 1, 7, 7]
months = [\'Jan\', \'Feb\', \'Mar\', \'Apr\', \'May\', \'Jun\',
          \'Jul\',\'Aug\         


        
2条回答
  •  青春惊慌失措
    2020-12-13 20:25

    Try tightlayout.

    plt.tight_layout()
    

    at the end of your code. It may prevent the overlap a little bit.

提交回复
热议问题