【发布时间】:2022-01-09 02:48:35
【问题描述】:
我有这个从熊猫数据框计算出来的直方图。
我想根据 x 轴值更改颜色。
例如:
If the value is = 0 the color should be green
If the value is > 0 the color should be red
If the value is < 0 the color should be yellow
我只关心 x 轴。酒吧的高度对我来说并不重要。所有其他解决方案均针对 y 轴。
【问题讨论】:
标签: python pandas matplotlib histogram