【发布时间】:2011-05-28 17:48:57
【问题描述】:
我想生成具有透明表面的 3D 条形图,以便我可以看到高条后面发生的情况。
mplot3d API docs 表示bar3d 函数允许使用关键字。我传递了所有必需的参数,但只能输出具有实体表面的图形。 These 和 these 条形图清楚地显示了半透明表面。
我尝试了关键字alpha(因为它在其他地方用于类似目的)但未被识别:
Exception Value: bar3d() got an unexpected keyword argument 'alpha'
尽管在上述示例之一中使用了 zsort 参数,但它似乎也不起作用:
Exception Value: bar3d() got an unexpected keyword argument 'zsort'
如何生成透明条形图?
【问题讨论】:
标签: python matplotlib bar-chart