matplotlib绘图问题

在用plt.bar(x,y,color='red')绘图时提示

TypeError: unsupported operand type(s) for -: 'str' and 'float'错误,

或者是TypeError: ufunc subtract cannot use operands with types dtype('<M8[ns]') and dtype('float64')错误。

在matplotlib3.0.2版本中有以上错误,但在2.0.2版本中无此错误,是不能用字符类型、浮点类型、时间类型,哪XY轴该用什么类型呀,真抓狂。

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^