有没有办法在 matplotlib 中渲染 3D 饼图,或者是否有可以生成 3D 饼图的 Python 包?
EDIT:我其实已经知道了pygooglechart,但我正在寻找可以离线完成的东西。我很抱歉忘记包含此信息。对于那些提供pygooglechart
,感谢您的努力,您有我的选票。问题仍然悬而未决,需要更多的想法。
当然,你可以使用谷歌图表,这是一个Python包装器谷歌图表.
PyPi: pygooglechat 0.4.0:发布日期:2014 年 4 月 20 日
GitHub: pygooglechart: 项目被放弃
例如:
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')
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)