def make_pie(self, percent, topic):
        print ("The Positive Tweet Proportion is ", percent)
        figure(1, figsize=(6,6))
        ax = axes([0.1, 0.1, 0.8, 0.8])

        labels = 'Positive', 'Negative'
        fracs = [100*percent, 100.-100*percent]
        explode=(0.05, 0)

        pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%', shadow=True, startangle=90)

        title_con = topic + " tweets sentiment analysis"
        title(title_con, bbox={'facecolor':'0.8', 'pad':5})
        savefig('pie2.png')
Make a pie chart
dataset/ETHPy150Open LargePanda/LearnPy/learnpy/tools/TweetSentiment.py/TweetSentiment.make_pie