我想在x轴上显示刻度的字符串值pyqtgraph.现在我无法弄清楚如何做到这一点.
pyqtgraph
例如:
x = ['a', 'b', 'c', 'd', 'e', 'f'] y = [1, 2, 3, 4, ,5, 6] pg.plot(x, y)
当我尝试将字符串数组传递给x变量时,它会尝试将其转换为float并使用错误消息中断GUI.
x
python qt pyqt pyqt4 pyqtgraph
pyqt ×1
pyqt4 ×1
pyqtgraph ×1
python ×1
qt ×1