Snippets Collections
labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
sizes = [15, 30, 45, 10]
explode = (0, 0.1, 0, 0)  # only "explode" the 2nd slice (i.e. 'Hogs')

fig1, ax1 = plt.subplots()
ax1.pie(sizes, explode=explode, labels=labels, autopct='%1.1f%%',
        shadow=True, startangle=90)
ax1.axis('equal')  # Equal aspect ratio ensures that pie is drawn as a circle.

plt.show()
star

Fri Jul 23 2021 09:34:36 GMT+0000 (UTC) https://reactchartjs.github.io/react-chartjs-2/

#chart #react
star

Thu Jan 21 2021 15:07:17 GMT+0000 (UTC)

#plot #pie #chart #plotting

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension