This is the piece of code i'm having problem with.Here the hp and windows overlap on each other and makes both of it not visible help me out please
plt.figure(0, figsize=(5,5))
plt.pie(l_brand_val, labels=l_brand_lab, autopct = "%1.1f%%")
plt.pie(l_os_val, labels=l_os_lab, autopct = "%1.1f%%")
plt.show()
You draw two plots on one figure. Try: plt.close()
plt.plot([1,2,3],[2,3,3])
plt.savefig("test.jpg")
plt.close()
plt.plot([1,2,3], [5,5,5])
plt.savefig("test1.jpg")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.