有没有办法在matplotlib中渲染3D饼图?或者你知道至少有一个可以生成3D饼的Python包吗?matplotlib中的3D饼图
编辑:我其实已经知道pygooglechart
,但我正在寻找可以离线完成的事情。我忘记包含这些信息的道歉。对于那些提供pygooglechart
,谢谢你的努力,你有我的选票。问题仍然存在于更多的想法。
有没有办法在matplotlib中渲染3D饼图?或者你知道至少有一个可以生成3D饼的Python包吗?matplotlib中的3D饼图
编辑:我其实已经知道pygooglechart
,但我正在寻找可以离线完成的事情。我忘记包含这些信息的道歉。对于那些提供pygooglechart
,谢谢你的努力,你有我的选票。问题仍然存在于更多的想法。
当然,您可以使用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')
alt text http://a.imageshack.us/img96/6691/googlecharts02.png
您可以用Google charts API做到这一点。例如,使用pygooglechart:
(当然,也有reasons避免优先于其它visualizations 3D饼图和甚至饼图。)
1为信息链接:) – Kit 2010-08-12 14:44:59