在matplotlib的3D饼图

Kit*_*Kit 2 python 3d matplotlib vtk pie-chart

有没有办法在matplotlib中渲染3D饼图?或者你至少知道一个可以生成3D馅饼的Python包吗?

编辑:我实际上已经知道了pygooglechart,但我正在寻找可以离线完成的东西.我对忘记包含这些信息表示歉意.对于那些提供的人pygooglechart,感谢您的努力,您有我的选票.对于更多想法仍有疑问.

dou*_*oug 5

当然,你可以使用pygooglecharts,它是Google Charts的python包装器.

例如:

from pygooglechart import PieChart3D

def python_pie3D() :
  # initialize chart object, 250 x 250 pixels
  chart = PieChart3D(250, 250)

  # pass your data to the chart object
  chart.add_data([398, 294, 840, 462])

  # make labels for the slices
  chart.set_pie_labels("Lithuania Bulgaria Ukraine Romania".split())

  # render the image
  chart.download('revenue_east_europe.png')
Run Code Online (Sandbox Code Playgroud)

alt text http://a.imageshack.us/img96/6691/googlecharts02.png