fork download
  1. import matplotlib.pyplot as plt
  2. year=[2015,2016,2017,2018,2019]
  3. tourists=[80,19,69,45,34]
  4. plt.pie(tourists,labels=year,autopct='%1.2f%%')
  5. plt.title('Years&Tourists')
  6. plt.xlabel('Years')
  7. plt.ylabel('Tourists')
  8. plt.show()
  9.  
Success #stdin #stdout 0.69s 55916KB
stdin
Standard input is empty
stdout
Standard output is empty