#NEWLINE# def make_pie( self , percent , topic ) : #NEWLINE# #INDENT# '\n        Make a pie chart\n        :param percent:\n        :return:\n        ' #NEWLINE# print ( 'The Positive Tweet Proportion is ' , percent ) #NEWLINE# figure ( 1 , figsize = ( 6 , 6 ) ) #NEWLINE# ax = axes ( [ 0.1 , 0.1 , 0.8 , 0.8 ] ) #NEWLINE# labels = ( 'Positive' , 'Negative' ) #NEWLINE# fracs = [ ( 100 * ax ) , ( 100.0 - ( 100 * percent ) ) ] #NEWLINE# explode = ( 0.05 , 0 ) #NEWLINE# pie ( fracs , explode = explode , labels = labels , autopct = '%1.1f%%' , shadow = True , startangle = 90 ) #NEWLINE# title_con = ( topic + ' tweets sentiment analysis' ) #NEWLINE# title ( title_con , bbox = { #NEWLINE# #INDENT# 'facecolor' : '0.8' , #NEWLINE# 'pad' : 5 , #NEWLINE# #UNINDENT# } ) #NEWLINE# savefig ( 'pie2.png' )