Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 288 Bytes
from vtkplotter import donutPlot
title = "A donut plot"
fractions = [0.1, 0.2, 0.3, 0.1, 0.3]
colors = [ 1, 2, 3, 4, 'white']
labels = ["stuff1", "stuff2", "compA", "compB", ""]
dn = donutPlot(fractions, c=colors, labels=labels, title=title)
dn.show(axes=None, bg='w')
You can’t perform that action at this time.